Greg Stark <stark@mit.edu> Monday 20 of June 2011 03:39:12
> On Thu, Jun 16, 2011 at 9:00 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > BTW, if you're hacking Postgres code and don't already have a
> > "reinstall" script, you need one. Mine is basically
> >
> > pg_ctl stop
> > cd $PGBLDROOT/src/backend
> > make install-bin
> > pg_ctl start
>
> I've always wondered what other people do to iterate quickly. It's a
> bit of a pain that you can't just run the binary out of the build
> tree. This looks a lot safer than some of the things I was considering
> doing with symlinks.
I actually go to installation directory
and call in one line (simple because up arrow helps).
pg_ctl -D db stop; gmake -C ../postgresql -j5 install; pg_ctl -D db start
Regards,
Radek