Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: brianc/node-postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: pg@8.2.0
Choose a base ref
...
head repository: brianc/node-postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: pg@8.2.1
Choose a head ref
  • 9 commits
  • 13 files changed
  • 2 contributors

Commits on May 13, 2020

  1. Update changelog

    brianc committed May 13, 2020
    Copy the full SHA
    70c8e5f View commit details
  2. Upgrade mocha

    brianc committed May 13, 2020
    Copy the full SHA
    8404434 View commit details
  3. Merge pull request #2213 from brianc/bmc/upgrade-mocha

    Upgrade mocha
    brianc authored May 13, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bf46939 View commit details

Commits on May 14, 2020

  1. Send the client_encoding startup parameter value with more typical …

    …formatting
    
    All non-alphanumerics are ignored, but `'utf-8'` is weird. `UTF8` is the canonical name, and is what libpq sends.
    charmander committed May 14, 2020
    Copy the full SHA
    bf40f03 View commit details
  2. Copy the full SHA
    d842255 View commit details

Commits on May 15, 2020

  1. Merge pull request #2217 from charmander/normal-encoding-parameter

    Send the `client_encoding` startup parameter value with more typical formatting
    brianc authored May 15, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d5b615e View commit details
  2. Send sync after flush

    brianc committed May 15, 2020
    Copy the full SHA
    a79c8e7 View commit details
  3. Merge pull request #2220 from brianc/bmc/fix-loop

    Send sync after flush
    brianc authored May 15, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    59cbf03 View commit details
  4. Publish

     - pg-connection-string@2.2.3
     - pg-cursor@2.2.1
     - pg-pool@3.2.1
     - pg-protocol@1.2.4
     - pg-query-stream@3.1.1
     - pg@8.2.1
    brianc committed May 15, 2020
    Copy the full SHA
    f3136a7 View commit details
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,18 @@ For richer information consult the commit log on github with referenced pull req

We do not include break-fix version release in this file.

### pg@8.2.0

- Switch internal protocol parser & serializer to [pg-protocol](https://github.com/brianc/node-postgres/tree/master/packages/pg-protocol). The change is backwards compatible but results in a significant performance improvement across the board, with some queries as much as 50% faster. This is the first work to land in an on-going performance improvment initiative I'm working on. Stay tuned as things are set to get much faster still! :rocket:

### pg-cursor@2.2.0

- Switch internal protocol parser & serializer to [pg-protocol](https://github.com/brianc/node-postgres/tree/master/packages/pg-protocol). The change is backwards compatible but results in a significant performance improvement across the board, with some queries as much as 50% faster.

### pg-query-stream@3.1.0

- Switch internal protocol parser & serializer to [pg-protocol](https://github.com/brianc/node-postgres/tree/master/packages/pg-protocol). The change is backwards compatible but results in a significant performance improvement across the board, with some queries as much as 50% faster.

### pg@8.1.0

- Switch to using [monorepo](https://github.com/brianc/node-postgres/tree/master/packages/pg-connection-string) version of `pg-connection-string`. This includes better support for SSL argument parsing from connection strings and ensures continuity of support.
4 changes: 2 additions & 2 deletions packages/pg-connection-string/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-connection-string",
"version": "2.2.2",
"version": "2.2.3",
"description": "Functions for dealing with a PostgresSQL connection string",
"main": "./index.js",
"types": "./index.d.ts",
@@ -29,7 +29,7 @@
"chai": "^4.1.1",
"coveralls": "^3.0.4",
"istanbul": "^0.4.5",
"mocha": "^3.5.0"
"mocha": "^7.1.2"
},
"files": [
"index.js",
6 changes: 3 additions & 3 deletions packages/pg-cursor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-cursor",
"version": "2.2.0",
"version": "2.2.1",
"description": "Query cursor extension for node-postgres",
"main": "index.js",
"directories": {
@@ -16,7 +16,7 @@
"author": "Brian M. Carlson",
"license": "MIT",
"devDependencies": {
"mocha": "^6.2.2",
"pg": "^8.2.0"
"mocha": "^7.1.2",
"pg": "^8.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/pg-pool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-pool",
"version": "3.2.0",
"version": "3.2.1",
"description": "Connection pool for node-postgres",
"main": "index.js",
"directories": {
@@ -30,7 +30,7 @@
"co": "4.6.0",
"expect.js": "0.3.1",
"lodash": "^4.17.11",
"mocha": "^5.2.0",
"mocha": "^7.1.2",
"pg-cursor": "^1.3.0"
},
"peerDependencies": {
3 changes: 0 additions & 3 deletions packages/pg-pool/test/mocha.opts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/pg-protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-protocol",
"version": "1.2.3",
"version": "1.2.4",
"description": "The postgres client/server binary protocol, implemented in TypeScript",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
"@types/node": "^12.12.21",
"chai": "^4.2.0",
"chunky": "^0.0.0",
"mocha": "^6.2.2",
"mocha": "^7.1.2",
"ts-node": "^8.5.4",
"typescript": "^3.7.3"
},
2 changes: 1 addition & 1 deletion packages/pg-protocol/src/outbound-serializer.test.ts
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ describe('serializer', () => {
.addCString('database')
.addCString('bang')
.addCString('client_encoding')
.addCString("'utf-8'")
.addCString('UTF8')
.addCString('')
.join(true)
)
2 changes: 1 addition & 1 deletion packages/pg-protocol/src/serializer.ts
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ const startup = (opts: Record<string, string>): Buffer => {
writer.addCString(key).addCString(opts[key])
}

writer.addCString('client_encoding').addCString("'utf-8'")
writer.addCString('client_encoding').addCString('UTF8')

var bodyBuffer = writer.addCString('').flush()
// this message is sent without a code
8 changes: 4 additions & 4 deletions packages/pg-query-stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-query-stream",
"version": "3.1.0",
"version": "3.1.1",
"description": "Postgres query result returned as readable stream",
"main": "index.js",
"scripts": {
@@ -25,13 +25,13 @@
"JSONStream": "~0.7.1",
"concat-stream": "~1.0.1",
"eslint-plugin-promise": "^3.5.0",
"mocha": "^6.2.2",
"pg": "^8.2.0",
"mocha": "^7.1.2",
"pg": "^8.2.1",
"stream-spec": "~0.3.5",
"stream-tester": "0.0.5",
"through": "~2.3.4"
},
"dependencies": {
"pg-cursor": "^2.2.0"
"pg-cursor": "^2.2.1"
}
}
1 change: 0 additions & 1 deletion packages/pg-query-stream/test/mocha.opts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/pg/lib/connection.js
Original file line number Diff line number Diff line change
@@ -172,8 +172,8 @@ Connection.prototype.flush = function () {
const syncBuffer = serialize.sync()
Connection.prototype.sync = function () {
this._ending = true
this._send(syncBuffer)
this._send(flushBuffer)
this._send(syncBuffer)
}

const endBuffer = serialize.end()
8 changes: 4 additions & 4 deletions packages/pg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg",
"version": "8.2.0",
"version": "8.2.1",
"description": "PostgreSQL client - pure javascript & libpq with the same API",
"keywords": [
"database",
@@ -21,9 +21,9 @@
"dependencies": {
"buffer-writer": "2.0.0",
"packet-reader": "1.0.0",
"pg-connection-string": "^2.2.2",
"pg-pool": "^3.2.0",
"pg-protocol": "^1.2.3",
"pg-connection-string": "^2.2.3",
"pg-pool": "^3.2.1",
"pg-protocol": "^1.2.4",
"pg-types": "^2.1.0",
"pgpass": "1.x",
"semver": "4.3.2"
Loading