Re: proposal: schema variables
Pavel Stehule <pavel.stehule@gmail.com>
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Move WAL sequence code into its own file
- a87987cafca6 19 (unreleased) cited
-
Add ExplainState argument to pg_plan_query() and planner().
- c83ac02ec730 19 (unreleased) cited
-
Don't include access/htup_details.h in executor/tuptable.h
- 1a8b5b11e48a 19 (unreleased) cited
-
Refactor to avoid code duplication in transformPLAssignStmt.
- b0fb2c6aa5a4 19 (unreleased) cited
-
Avoid including commands/dbcommands.h in so many places
- 325fc0ab14d1 19 (unreleased) cited
-
Restrict psql meta-commands in plain-text dumps.
- 71ea0d679543 19 (unreleased) cited
-
Split func.sgml into more manageable pieces
- 4e23c9ef65ac 19 (unreleased) cited
-
Fix squashing algorithm for query texts
- 0f65f3eec478 18.0 cited
-
EXPLAIN: Always use two fractional digits for row counts.
- 95dbd827f2ed 18.0 cited
-
Preliminary refactoring of plpgsql expression construction.
- a654af21ae52 18.0 cited
-
plpgsql: pure parser and reentrant scanner
- 7b27f5fd36cb 18.0 cited
-
Add some sanity checks in executor for query ID reporting
- 24f520594809 18.0 cited
-
Fix misleading error message context
- 4af123ad45bd 18.0 cited
-
Add macros for looping through a List without a ListCell.
- 14dd0f27d7cd 17.0 cited
Attachments
- v20250915-0012-function-pg_get_session_variables_memory-for-cleanin.patch (text/x-patch) patch v20250915-0012
- v20250915-0014-memory-cleaning-after-DROP-VARIABLE.patch (text/x-patch) patch v20250915-0014
- v20250915-0011-LET-command-assign-a-result-of-expression-to-the-ses.patch (text/x-patch) patch v20250915-0011
- v20250915-0015-plpgsql-tests.patch (text/x-patch) patch v20250915-0015
- v20250915-0013-DISCARD-VARIABLES.patch (text/x-patch) patch v20250915-0013
- v20250915-0009-fill-an-auxiliary-buffer-with-values-of-session-vari.patch (text/x-patch) patch v20250915-0009
- v20250915-0010-svariableReceiver.patch (text/x-patch) patch v20250915-0010
- v20250915-0008-collect-session-variables-used-in-plan-and-assign-pa.patch (text/x-patch) patch v20250915-0008
- v20250915-0007-local-HASHTAB-for-currently-used-session-variables-a.patch (text/x-patch) patch v20250915-0007
- v20250915-0006-session-variable-fences-parsing.patch (text/x-patch) patch v20250915-0006
- v20250915-0005-support-of-session-variables-for-pg_dump.patch (text/x-patch) patch v20250915-0005
- v20250915-0004-support-of-session-variables-for-psql.patch (text/x-patch) patch v20250915-0004
- v20250915-0003-GRANT-REVOKE-variable.patch (text/x-patch) patch v20250915-0003
- v20250915-0002-CREATE-DROP-ALTER-VARIABLE.patch (text/x-patch) patch v20250915-0002
- v20250915-0001-introduce-new-class-catalog-pg_variable.patch (text/x-patch) patch v20250915-0001
Hi po 15. 9. 2025 v 10:21 odesílatel Jim Jones <jim.jones@uni-muenster.de> napsal: > Hi > > On 9/13/25 11:28, Pavel Stehule wrote: > > > > minor change (after private talk with Jim Jones) > > > > After another pass, there are a few additional tests that should be > included in this patch: > > > == Additional tests for GRANT x ON VARIABLE == > ============================================== > > We wanna make sure the proper error message is raised. > > postgres=# GRANT INSERT ON VARIABLE var TO jim; > ERROR: invalid privilege type INSERT for session variable > > postgres=# GRANT DELETE ON VARIABLE var TO jim; > ERROR: invalid privilege type DELETE for session variable > > > == Tests for ALTER DEFAULT PRIVILEGES == > ======================================== > > I couldn't find regression tests for ALTER DEFAULT PRIVILEGES ... if I > haven't just missed them, I think they'd be a nice addition. > > postgres=# ALTER DEFAULT PRIVILEGES IN SCHEMA s GRANT UPDATE ON > VARIABLES TO jim; > ALTER DEFAULT PRIVILEGES > > postgres=# ALTER DEFAULT PRIVILEGES IN SCHEMA s GRANT INSERT ON > VARIABLES TO jim; > ERROR: invalid privilege type INSERT for session variable > > postgres=# ALTER DEFAULT PRIVILEGES IN SCHEMA s GRANT DELETE ON > VARIABLES TO jim; > ERROR: invalid privilege type DELETE for session variable > > postgres=# ALTER DEFAULT PRIVILEGES IN SCHEMA s GRANT SELECT ON > VARIABLES TO jim; > ALTER DEFAULT PRIVILEGES > done Regards Pavel > > > Best, Jim >