Skip to content

Qualify oid colum fixing Postgres v16 incompatibility#38428

Merged
Tener merged 1 commit intomasterfrom
tener/postgres-activate-user-v16
Feb 22, 2024
Merged

Qualify oid colum fixing Postgres v16 incompatibility#38428
Tener merged 1 commit intomasterfrom
tener/postgres-activate-user-v16

Conversation

@Tener
Copy link
Copy Markdown
Contributor

@Tener Tener commented Feb 20, 2024

Starting with Postgres v16, the pg_catalog.pg_auth_members view also has oid column, which causes the reference to the column become ambiguous in the existing query.

Sample error:

connection to server at "localhost" (127.0.0.1), port 62057 failed: your Teleport role requires automatic database user provisioning but an attempt to activate database user "ben" failed due to the following error: ERROR: column reference "oid" is ambiguous (SQLSTATE 42702)

Changelog: Fixed Postgres v16.x compatibility issue preventing multiple connections for auto-provisioned users.

@github-actions github-actions Bot added database-access Database access related issues and PRs size/sm labels Feb 20, 2024
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@Tener Tener requested a review from greedy52 February 20, 2024 15:14
@Tener Tener added this pull request to the merge queue Feb 22, 2024
Merged via the queue into master with commit 469f3bd Feb 22, 2024
@Tener Tener deleted the tener/postgres-activate-user-v16 branch February 22, 2024 12:05
@public-teleport-github-review-bot
Copy link
Copy Markdown

@Tener See the table below for backport results.

Branch Result
branch/v13 Create PR
branch/v14 Create PR
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database-access Database access related issues and PRs size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants