Initial check-in of pg-env

This commit is contained in:
Yogesh Sharma 2023-06-06 09:42:55 -04:00
parent 734d422d7c
commit 22d36f283b
Signed by: yogesh.sharma
GPG key ID: 47778BF1D2A81254
2 changed files with 188 additions and 2 deletions

View file

@ -1,2 +1,42 @@
# pg-env
PostgreSQL development management script
# PostgreSQL development environment management script
## Setting up environment
export PGV=<major version|HEAD>
## Activate PostgreSQL Developmnent ENvironment
`source pg-env`
## Compile PostgreSQL source and install
`compile`
## Compile PostgreSQL contrib and install
`compile_contrib`
## Start PostgreSQL
`startdb`
## Stop PostgtreSQL
`stopdb`
## Restart PostgreSQL
`restartdb`
## Remove PGDATA
`rmdb`
## Initialize PostgreSQL Cluster and include custom config
`setupdb`
## Reset DB
`resetdb`
## Reset and Setup Node N
`resetdbN`
## Reset database and install direcotory
`resetall`
## deactivate the environment
`deactivate`