Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Update v6 release - #5

Merged
Algunenano merged 41 commits into
CartoDB:cdb-6.1from
Algunenano:cdb-6.1_update
May 25, 2018
Merged

Algunenano merged 41 commits into
CartoDB:cdb-6.1from
Algunenano:cdb-6.1_update

Conversation

@Algunenano

@Algunenano Algunenano commented May 23, 2018 •

Copy link
Copy Markdown
  • Updates upstream branch to the v6.4.2 release.
  • Cherry-picks commit from v7 to be able to run test on PG10.
  • Removes deprecation warnings.
  • Remove testing of native module (we don't use it and our changes are not prepared for it).
  • Update travis matrix to test node 6 and 8 vs PG 9.5 and 10

Related to CartoDB/node-cartodb-psql#30 I'm going to make a release here and point node-cartodb-psql to this branch+release.

iRockyZhou and others added 30 commits March 27, 2017 22:20
* Improve Readme.md for not so advanced users

1. Add brief description about the 3 possible ways of executing queries: passing the query to a pool, borrowing a client from a pool or obtaining an exclusive client. Give examples for the 3 of them.

2. Use the examples to teach how to reuse a pool in all of your project. This should be helpful for not so advanced users and prevents mistakes.

3. Open a troubleshooting section.

* Shrink Troubleshooting and Point to Examples

1. Troubleshooting/FAQ section will only contain a reference to the wiki FAQ. I've already moved the content to the wiki.

2. At the end of "Pooling example" point to the wiki example page. Also indicate that there they can find how to use node-postgres with promises and async/await. I've already created that content in the wiki.
Make pg-native able to pass sslmode, sslca, sslkey and sslcert params to libpq
* Support for logical streaming replication

* Wrong compare expr in getLibpqConnectionString

* Simplify codes for replication parameter
* Fix escaping of libpq connection string properties

Fix handlings of libpq connection properties to properly escape single
quotes and backslashes. Previously the values were surrounded in single
quotes which handled whitespace within the property value, but internal
single quotes and backslashes would cause invalid connection strings to
be generated.

* Update expected output in test to be quoted

Update the expect host output in the connection parameter test
to expect it to be surrounded by single quotes.

* Add test for configs with quotes and backslashes
* Going red: using a config object creates two pools when missing some params

It should only create a pool in a consistent way, even if some params
are not provided in the first place.

* Delay the pool name generation to make it consistent between calls

* Don't fallback to empty object as config is already defined
* Remove redundant tests

* Add client connectionString test

Add test to ensure { connectionString } is respected as an argument to the client constructor

* Add test for connection string property

Also fixed some legacy require statements.
This adds deprecations in preparation for `pg@7.0`

- deprecate using event emitters on automatically created results from client.query.
- deprecate query.promise() - it should never have been a public method and it's not documented. I need to do better about using _ prefix on private methods in the future.
- deprecate singleton pool on the `pg` object. `pg.connect`, `pg.end`, and `pg.cancel`.
* WIP

* Remove console.log messages
2Pacalypse- and others added 8 commits July 13, 2017 22:24
PostgreSQL 10 reports its version as only `major.minor`, so it can’t be parsed with semver. The `server_version_num` setting is a major version followed by a four-digit minor version since version 10, and was a three-digit major version followed by a two-digit minor version before that.
@Algunenano
Algunenano force-pushed the cdb-6.1_update branch 12 times, most recently from 6e316ab to 1416a31 Compare May 23, 2018 17:26

@dgaubert dgaubert left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of changes 😅 most of them cherry-picked.

Looks good to me. Let's integrate with node-cartodb-psql and friends before release a new tag.

Comment thread .travis.yml
node_js: "6"
addons:
postgresql: "9.6"
env:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know that travis could handle these environment combinations:

  • PG 9.5 - node6
  • PG 9.5 - node8
  • PG 10 - node6
  • PG 10 - node8

Great!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it weren't because PG10 is not fully integrated the script could be simpler (no manual install). For example:

postgresql:
  - "9.5"
  - "9.6"

node_js:
  - "6"
  - "8"

Will create a matrix of 4 configurations automatically with those packages setup properly.

@Algunenano
Algunenano merged commit 449fac1 into CartoDB:cdb-6.1 May 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.