question about managing multiple databases
question about managing multiple databases
От:
Chris Hayner <hayner@nimbus.ocis.temple.edu>
Дата:
Hi. I was wondering if there was any way to have one database up in full accessibility mode, (i.e. usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data) and another in just local host (i.e. /usr/local/pgsql/bin/postmaster -d 2 -D /usr/local/pgsql/data -h 127.0.0.1 -i) Any help on this would be appreciated. Thanks, --Chris Hayner
Re: question about managing multiple databases
От:
"scott.marlowe" <scott.marlowe@ihs.com>
Дата:
On Fri, 14 Feb 2003, Chris Hayner wrote: > > Hi. I was wondering if there was any way to have one database up in full > accessibility mode, (i.e. usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data) > and another in just local host > (i.e. /usr/local/pgsql/bin/postmaster -d 2 -D /usr/local/pgsql/data -h > 127.0.0.1 -i) Yes, but they'll need different arguments for the -D switch. Best bet is to turn off tcpip_socket on the one you want to run local only. That means you'll need two different data directories.