Commit Graph

8 Commits

Author SHA1 Message Date
Aarush Jain
c2f9337962 setup: Fix postgres-init-dev-db failure when OS user is 'zulip'.
Provisioning fails when the system username is 'zulip' because the
script attempts to run 'GRANT zulip TO "zulip"', which PostgreSQL
rejects as a circular dependency.

This change adds a conditional check to ensure the GRANT is only
attempted if the database username and system username differ.
2026-01-21 09:55:20 -08:00
Alex Vandiver
13243be3e8 migrations: Move schema creation and search_path into pre_migrate hook. 2025-12-16 13:03:27 -08:00
Alex Vandiver
1455a68aef postgresql-init-dev-db: Add missing quotes.
These are necessary if the path contains spaces.
2024-06-16 11:36:58 -07:00
Gyan Dev
59996ff353
postgresql-init-dev-db: Fix string quotes.
The previous version of the script did not quote VAGRANTUSERNAME, which caused 
an error when running the script if the username contained `-` or other characters
that affect the Postgres syntax. Fix this using double-quotes.
2024-01-19 09:32:14 -08:00
Alex Vandiver
dc2726c814 pgroonga: Remove now-unnecessary 'GRANT USAGE' statement.
This was only necessary for PGroonga 1.x, and the `pgroonga` schema
will most likely be removed at some point inthe future, which will
make this statement error out.

Drop the unnecessary statement.
2023-06-23 14:40:27 -07:00
Anders Kaseorg
480a2e2d64 postgresql-init-dev-db: Work around PGroonga WAL issue.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-05-18 11:52:22 -07:00
Anders Kaseorg
544bbd5398 docs: Fix capitalization mistakes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-05-10 09:57:26 -07:00
Alex Vandiver
2b0bbbb882 tools: Rename postgres to postgresql in tool names. 2020-10-28 11:57:02 -07:00