Skip to content

Commit

Permalink
spilo: remove quotes around db_name (#119)
Browse files Browse the repository at this point in the history
this avoids double quoting since pg_catalog.quote_ident(datname)
will add quotes if needed
  • Loading branch information
wuputah authored Aug 2, 2023
1 parent c108761 commit 0765a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/spilo/postgres-appliance/scripts/post_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ UPDATE pg_catalog.pg_extension SET extname = 'columnar' WHERE extname = 'citus_c
UPDATE pg_catalog.pg_proc SET probin = '\$libdir/columnar' WHERE probin = '\$libdir/citus_columnar';
CREATE EXTENSION IF NOT EXISTS columnar;
ALTER EXTENSION columnar UPDATE;
ALTER DATABASE \"${db_name}\" SET default_table_access_method = 'columnar';
ALTER DATABASE ${db_name} SET default_table_access_method = 'columnar';
GRANT EXECUTE ON FUNCTION public.set_user(text) TO admin;
GRANT EXECUTE ON FUNCTION public.pg_stat_statements_reset($RESET_ARGS) TO admin;"
if [ "$PGVER" -lt 10 ]; then
Expand Down

0 comments on commit 0765a60

Please sign in to comment.