Skip to content

[pg] Add current database to pg_database #3068

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

Closed
Tracked by #1722
rekby opened this issue Mar 21, 2024 · 0 comments
Closed
Tracked by #1722

[pg] Add current database to pg_database #3068

rekby opened this issue Mar 21, 2024 · 0 comments
Assignees
Labels

Comments

@rekby
Copy link
Member

rekby commented Mar 21, 2024

  1. Run Local YDB https://github.com/ydb-platform/ydb/wiki/Local-run-postgres-tests
echo "SELECT datname FROM pg_database" | psql postgres://root:1234@localhost:5432/local

Result:

  datname
-----------
 template1
 template0
 postgres
(3 rows)

Expected result:

  datname
-----------
 postgres
 local
 template1
 template0
(4 rows)

Notes:

  1. Get current database from connection info (pg_wire)
  2. Add received database to pg_database table content:

Similar to: #3124

@rekby rekby mentioned this issue Mar 21, 2024
8 tasks
@rekby rekby added the area/pg label Mar 21, 2024
@rekby rekby closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants