Revision 10126
Added by Aaron Marcuse-Kubitza over 11 years ago
common.Makefile | ||
---|---|---|
89 | 89 |
# DB |
90 | 90 |
asAdmin := sudo -E -u postgres |
91 | 91 |
psqlOpts := --set ON_ERROR_STOP=1 --quiet |
92 |
psqlAsAdmin := $(asAdmin) psql $(psqlOpts) |
|
92 |
psqlAsAdmin := $(asAdmin) psql -U postgres $(psqlOpts)
|
|
93 | 93 |
# -E preserves env vars so PGOPTIONS is passed to psql |
94 | 94 |
mkSchemaCmd = 'CREATE SCHEMA $(1);' |
95 | 95 |
rmSchemaCmd = 'DROP SCHEMA IF EXISTS "$(1)" CASCADE;' |
Also available in: Unified diff
bugfix: *Makefile: $(asAdmin) invocations of Postgres commands: need to set DB user to postgres so that it won't default to the system user _postgres