Skip to content

Commit

Permalink
Describe how I do development
Browse files Browse the repository at this point in the history
  • Loading branch information
gurjeet committed Mar 27, 2022
1 parent 1f7e2c3 commit f0170e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,31 @@ The extension code takes many measures to prevent malicious/accidental misuse of
Development
-----------

Provided that you have Git, VirtualBox, and Vagrant installed, you can get started like so.

git clone git://git.postgresql.org/git/postgresql.git ~/dev/POSTGRES
cd ~/dev/POSTGRES
ln -s ../Postgres_Development_Vagrantfile ./Vagrantfile
# ^^ See https://github.com/gurjeet/home/blob/wip/dev/Postgres_Development_Vagrantfile
vagrant up
vagrant ssh
# Now we're inside Vagrant/Virtualbox VM
cd ~/dev/POSTGRES
git clone [email protected]:gurjeet/pg_plan_guarantee.git contrib/pg_plan_guarantee
pgconfigure
pgmake -j4 all check install
pgmake -C contrib/pg_plan_guarantee all install
pgmake -C contrib/auto_explain all install
pgstart
pgsql #starts psql utility
--- do testing etc.
pgstop

The above instructions use my custom develoment environment; they include the shell functions from my [pgd][] project, Vagrantfile for setting up Postgres development environment, and miscellaneous artifacts from my $[HOME][] directory versioned in Git.

[pgd]: https://github.com/gurjeet/pgd
[HOME]: https://github.com/gurjeet/home

Controversial Idea
------------------

Expand Down

0 comments on commit f0170e6

Please sign in to comment.