Repository navigation
fix(sources): the default PostgreSQL source id names the server (ITL-1267) #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eywalker
merged 10 commits into
main
from
eywalker/itl-1267-postgresql-table-source-the-default-source
Nov 19, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3d4bb56
fix(sources): the default PostgreSQL source id names the server (ITL-…
115808c
Merge remote-tracking branch 'origin/main' into eywalker/itl-1267-pos…
3ca82e1
fix(sources): no default PostgreSQL source id for a host beside a hos…
713e2c9
fix(sources): the PostgreSQL host and hostaddr are the ones libpq tak…
6fb074b
Merge remote-tracking branch 'origin/main' into eywalker/itl-1267-pos…
0678239
fix(sources): read PGHOST/PGHOSTADDR when the PostgreSQL connector co…
5f855f7
build(deps): psycopg 3.1.17 or later for orcapod[postgresql] (ITL-1267)
ce8170e
Merge remote-tracking branch 'origin/main' into eywalker/itl-1267-pos…
09c12b3
fix(sources): one IP address in two spellings keeps the PostgreSQL de…
3c58993
fix(sources): keep a drive-qualified PostgreSQL socket directory as g…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| ### Breaking changes and migration | ||
|
|
||
| - The default source id of a `PostgreSQLTableSource` names the server the connection reached | ||
| (ITL-1267): `postgresql_table:<host>:<port>/<database>.<schema>.<table>` (was | ||
| `postgresql_table:<database>.<schema>.<table>`), so one database, schema and table name on | ||
| two servers gives two ids. The host is the name or address as libpq reports it, a host name | ||
| in lower case, an IPv6 address in brackets in its exploded form (no `::`), a Unix-domain | ||
| socket directory as given (a Windows one with its drive too); the port is always the number used (without one in the DSN, a | ||
| service file's, else `PGPORT`, else libpq's compiled default, normally `5432`). | ||
| No user name, password or other connection parameter enters the id. The system-tag values | ||
| and source-info tokens of rows read from PostgreSQL without a `source_id` change with it; a | ||
| `source_id` you give is used as before, and a saved job keeps the id it was saved with. | ||
| - A PostgreSQL source whose DSN, `PGHOST` / `PGHOSTADDR` setting or service file names several | ||
| servers (`host=a,b`) has no default source id and raises `ValueError` unless it is given a | ||
| `source_id`: the server reached can change from one connection to the next. So does one | ||
| whose parameters give a host beside a different `hostaddr` (`host=db.example.org | ||
| hostaddr=192.0.2.1`), each from the DSN, a service file or the environment, as libpq takes | ||
| them: the connection is sent to the address, so the host name does not name the server | ||
| (two spellings of one IP address, compared by value, are one address). A host that would put | ||
| `::` in the address (a socket directory holding it or ending with `:`) gives no default either. A `hostaddr` given alone names the server by that | ||
| address. A database, schema or table name holding `/` has no default either, as one holding | ||
| `.` already had. | ||
| - `orcapod[postgresql]` requires psycopg 3.1.17 or later (was 3.0). The default PostgreSQL | ||
| source id relies on psycopg resolving a single host name of the DSN or `PGHOST` itself and | ||
| passing the address to libpq as `hostaddr`, which `Connection.connect` does from 3.1.17 | ||
| on; with an earlier psycopg, a service file's `hostaddr` beside a host name would be the | ||
| address used while the id named the host. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.