mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 02:29:35 +00:00
ddac22a12f88b3549618e2a999ee8bbe4b8e469f
SET only applies to the current migration session and is lost when the
connection closes. Use a DO block with current_database() to execute
ALTER DATABASE ... SET, which persists the GUC for all future connections.
The DO block with format('%I', current_database()) avoids hardcoding
the database name and works on PostgreSQL < 16 (which lacks ALTER DATABASE
CURRENT syntax).
Languages
TypeScript
82.2%
JavaScript
17%
CSS
0.5%
PLpgSQL
0.2%