https://github.com/cbbrowne/pginit
Postgres init script
https://github.com/cbbrowne/pginit
Last synced: about 2 months ago
JSON representation
Postgres init script
- Host: GitHub
- URL: https://github.com/cbbrowne/pginit
- Owner: cbbrowne
- Created: 2010-07-21T17:08:39.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2011-07-14T21:16:17.000Z (almost 15 years ago)
- Last Synced: 2023-03-11T04:44:44.388Z (over 3 years ago)
- Language: Shell
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
PostgreSQL init script
This script is intended to make it easy to set up PostgreSQL
instances, run them, and allow users to reference them.
postgres@cbbrowne:~/pginit> ./pgsql.sh
base: /var/lib/postgresql/dbs
dbbase: /var/lib/postgresql/dbs
Expected port: 7099 Configured port in /var/lib/postgresql/dbs/PGHEAD/postgresql-HEAD/postgresql.conf 7099
Usage: ./pgsqlhead.sh [start|autovacuum|reload|stop|env|mkdir|initdb]
postgres@cbbrowne:~/pginit>
start: starts up the instance
autovacuum: obsolete - for use when autovac was a separate program
reload: reloads configuration, so that if you change pg_hba.conf or
postgresql.conf, that config immediate effect
stop: stops the instance
env: loads the configuration (e.g. - PGPORT, PGHOST, ...) into current shell
mkdir: creates directories needed for this PG instance
initdb: runs "initdb" to initialize the database cluster. Rewrites
postgresql.conf based on environment variables within this script