pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedStarting postmaster with the option -i
10+ messages / 7 participants
[nested] [flat]
* Starting postmaster with the option -i
@ 2001-08-31 08:38 Raquel Vieira <raquel.vieira@ent.efacec.pt>
2001-08-31 13:50 ` Re: Starting postmaster with the option -i Gary Stainburn <gary.stainburn@ringways.co.uk>
2001-08-31 13:55 ` Re: Starting postmaster with the option -i speedboy <speedboy@nomicrosoft.org>
2001-08-31 14:25 ` Re: Starting postmaster with the option -i Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-08-31 14:33 ` Re: Starting postmaster with the option -i Lamar Owen <lamar.owen@wgcr.org>
2001-08-31 15:53 ` Re: Starting postmaster with the option -i Nick Fankhauser <nickf@ontko.com>
2001-08-31 16:12 ` Re: Starting postmaster with the option -i Shaun Thomas <sthomas@townnews.com>
0 siblings, 6 replies; 10+ messages in thread
From: raquel.vieira@ent.efacec.pt @ 2001-08-31 08:38 UTC (permalink / raw)
To: pgsql-admin
I'm using Postgres 7.1.2 and I need to use TCP/IP connections, so I
want to start Postmaster with the option -i.
The Postmaster is starting allone at the startup of the computer, but
it initiates by itself, I can't start it with that option. I have to
stop it and start it again with the option by myself.
Does anyone know how can I start postmaster (at the startup of the
computer) with the option -i?
Thank you,
Raquel
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
@ 2001-08-31 13:50 ` Gary Stainburn <gary.stainburn@ringways.co.uk>
2001-08-31 18:59 ` Re: Starting postmaster with the option -i Lamar Owen <lamar.owen@wgcr.org>
5 siblings, 1 reply; 10+ messages in thread
From: Gary Stainburn @ 2001-08-31 13:50 UTC (permalink / raw)
To: raquel.vieira@ent.efacec.pt; pgsql-admin
Hi Raquel,
The postmaster is probably being started using pg_ctl in
/etc/init.d/postgresql.
Add -o -i to the line, which tells pg_ctl to send the '-i' switch to the
back-end.
Gary
On Friday 31 August 2001 9:38 am, Raquel Vieira wrote:
> I'm using Postgres 7.1.2 and I need to use TCP/IP connections, so I
> want to start Postmaster with the option -i.
> The Postmaster is starting allone at the startup of the computer, but
> it initiates by itself, I can't start it with that option. I have to
> stop it and start it again with the option by myself.
> Does anyone know how can I start postmaster (at the startup of the
> computer) with the option -i?
>
> Thank you,
>
> Raquel
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
2001-08-31 13:50 ` Re: Starting postmaster with the option -i Gary Stainburn <gary.stainburn@ringways.co.uk>
@ 2001-08-31 18:59 ` Lamar Owen <lamar.owen@wgcr.org>
2001-09-03 09:25 ` Re: Starting postmaster with the option -i Gary Stainburn <gary.stainburn@ringways.co.uk>
0 siblings, 1 reply; 10+ messages in thread
From: Lamar Owen @ 2001-08-31 18:59 UTC (permalink / raw)
To: Gary Stainburn <gary.stainburn@ringways.co.uk>; pgsql-admin
On Friday 31 August 2001 09:50, Gary Stainburn wrote:
> The postmaster is probably being started using pg_ctl in
> /etc/init.d/postgresql.
> Add -o -i to the line, which tells pg_ctl to send the '-i' switch to the
> back-end.
PLEASE don't edit /etc/rc.d/init.d/postgresql. Edit
/var/llib/pgsql/data/postgresql.conf instead. The initscript WILL get
overwritten on the next RPM upgrade.
This is becoming a FAQ.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
2001-08-31 13:50 ` Re: Starting postmaster with the option -i Gary Stainburn <gary.stainburn@ringways.co.uk>
2001-08-31 18:59 ` Re: Starting postmaster with the option -i Lamar Owen <lamar.owen@wgcr.org>
@ 2001-09-03 09:25 ` Gary Stainburn <gary.stainburn@ringways.co.uk>
0 siblings, 0 replies; 10+ messages in thread
From: Gary Stainburn @ 2001-09-03 09:25 UTC (permalink / raw)
To: Lamar Owen <lamar.owen@wgcr.org>; pgsql-admin
Thanks for the information, I've now put back /etc/rc.d/init.d/postgresql and
updated postgresql.conf.
Gary
On Friday 31 August 2001 7:59 pm, Lamar Owen wrote:
> On Friday 31 August 2001 09:50, Gary Stainburn wrote:
> > The postmaster is probably being started using pg_ctl in
> > /etc/init.d/postgresql.
> >
> > Add -o -i to the line, which tells pg_ctl to send the '-i' switch to the
> > back-end.
>
> PLEASE don't edit /etc/rc.d/init.d/postgresql. Edit
> /var/llib/pgsql/data/postgresql.conf instead. The initscript WILL get
> overwritten on the next RPM upgrade.
>
> This is becoming a FAQ.
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
@ 2001-08-31 13:55 ` speedboy <speedboy@nomicrosoft.org>
2001-08-31 19:02 ` Re: Starting postmaster with the option -i Lamar Owen <lamar.owen@wgcr.org>
5 siblings, 1 reply; 10+ messages in thread
From: speedboy @ 2001-08-31 13:55 UTC (permalink / raw)
To: pgsql-admin
[root@b] : cat /etc/rc.d/init.d/postgresql
#!/bin/sh
#[ -x /tmp/.s.PGSQL.* ] && rm -f /tmp/.s.PGSQL.*
case "$1" in
'start')
su - postgres -c 'exec /usr/local/pgsql/bin/pg_ctl -o -i -D
/home/postgres/data start >> /usr/local/pgsql/errlog 2>&1 &'
;;
'stop')
su - postgres -c 'exec /usr/local/pgsql/bin/pg_ctl -D
/home/postgres/data stop >> /usr/local/pgsql/errlog 2>&1 &'
;;
*)
echo "usage: $0 start|stop"
exit 1
;;
esac
[root@b]:
That help? :)
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
2001-08-31 13:55 ` Re: Starting postmaster with the option -i speedboy <speedboy@nomicrosoft.org>
@ 2001-08-31 19:02 ` Lamar Owen <lamar.owen@wgcr.org>
0 siblings, 0 replies; 10+ messages in thread
From: Lamar Owen @ 2001-08-31 19:02 UTC (permalink / raw)
To: speedboy <speedboy@nomicrosoft.org>; pgsql-admin
On Friday 31 August 2001 09:55, speedboy wrote:
> [root@b] : cat /etc/rc.d/init.d/postgresql
> su - postgres -c 'exec /usr/local/pgsql/bin/pg_ctl -o -i -D
> That help? :)
While this _does_ work, why not use postgresql.conf for its proper purpose?
The RPM initscript, for security reasons, does not by default enable -i
anymore. It did at one point, which, in hindsight, was an error on my part.
Eventually the RPM initscript will support multiple postmasters. Some of
those may need tcpip_sockets and some may not. Each postmaster will have its
own PGDATA and its own postgresql.conf, but there will only be one initscript
with an iterative loop. Use the GUC file -- it's there and it works.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
@ 2001-08-31 14:25 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
5 siblings, 0 replies; 10+ messages in thread
From: Stephan Szabo @ 2001-08-31 14:25 UTC (permalink / raw)
To: Raquel Vieira <raquel.vieira@ent.efacec.pt>; +Cc: pgsql-admin
On 31 Aug 2001, Raquel Vieira wrote:
> I'm using Postgres 7.1.2 and I need to use TCP/IP connections, so I
> want to start Postmaster with the option -i.
> The Postmaster is starting allone at the startup of the computer, but
> it initiates by itself, I can't start it with that option. I have to
> stop it and start it again with the option by myself.
> Does anyone know how can I start postmaster (at the startup of the
> computer) with the option -i?
IIRC, the easiest way under 7.1 is to edit the postgresql.conf file
and set tcpip_socket = true.
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
@ 2001-08-31 14:33 ` Lamar Owen <lamar.owen@wgcr.org>
5 siblings, 0 replies; 10+ messages in thread
From: Lamar Owen @ 2001-08-31 14:33 UTC (permalink / raw)
To: raquel.vieira@ent.efacec.pt; pgsql-admin
On Friday 31 August 2001 04:38, Raquel Vieira wrote:
> Does anyone know how can I start postmaster (at the startup of the
> computer) with the option -i?
If this is an RPM installation (which is what it sounds like), edit the file
/var/lib/pgsql/data/postgresql.conf and set the 'tcpip_socket' config to
'true' and uncomment it. This is the exact same thing as passing -i to
postmaster.
Editing the initscript is not recommended.
And please read
http://www.postgresql.org/ftpsite/binary/v7.1.3/RPMS/README.rpm-dist
While it is for 7.1.3, it contains your answer for 7.1.2.
Hope that helps...
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
@ 2001-08-31 15:53 ` Nick Fankhauser <nickf@ontko.com>
5 siblings, 0 replies; 10+ messages in thread
From: Nick Fankhauser @ 2001-08-31 15:53 UTC (permalink / raw)
To: Raquel Vieira <raquel.vieira@ent.efacec.pt>; pgsql-admin
Raquel-
I believe that by v7.1, this could be placed in the postgresql.conf file.
(Found in /etc/postgresql on our Debian Linux box.) the line to add is:
tcpip_socket = 1
check out this page for details:
http://www.postgresql.org/idocs/index.php?runtime-config.html
It's probably not starting up right because of something going on in
/etc/init.d/postgresql on the startup. Try looking in this file if you want
to do the startup using the -i command line option.
-Nick
> I'm using Postgres 7.1.2 and I need to use TCP/IP connections, so I
> want to start Postmaster with the option -i.
> The Postmaster is starting allone at the startup of the computer, but
> it initiates by itself, I can't start it with that option. I have to
> stop it and start it again with the option by myself.
> Does anyone know how can I start postmaster (at the startup of the
> computer) with the option -i?
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Starting postmaster with the option -i
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
@ 2001-08-31 16:12 ` Shaun Thomas <sthomas@townnews.com>
5 siblings, 0 replies; 10+ messages in thread
From: Shaun Thomas @ 2001-08-31 16:12 UTC (permalink / raw)
To: Raquel Vieira <raquel.vieira@ent.efacec.pt>; +Cc: pgsql-admin
On 31 Aug 2001, Raquel Vieira wrote:
> Does anyone know how can I start postmaster (at the startup of the
> computer) with the option -i?
The file that is starting postgres is one of these:
/etc/rc.d/init.d/postgresql
/etc/rc.d/init.d/postgres
/etc/rc.d/init.d/postgresd
The last one is the most likely candidate. All you need to do is
edit this file and add the -i option to the spot where it actually
starts postgres.
At least, if you're comfortable editing bash scripts.
--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Shaun M. Thomas INN Database Programmer |
| Phone: (309) 743-0812 Fax : (309) 743-0830 |
| Email: sthomas@townnews.com AIM : trifthen |
| Web : hamster.lee.net |
| |
| "Most of our lives are about proving something, either to |
| ourselves or to someone else." |
| -- Anonymous |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
^ permalink raw reply [nested|flat] 10+ messages in thread
end of thread, other threads:[~2001-09-03 09:25 UTC | newest]
Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-31 08:38 Starting postmaster with the option -i Raquel Vieira <raquel.vieira@ent.efacec.pt>
2001-08-31 13:50 ` Gary Stainburn <gary.stainburn@ringways.co.uk>
2001-08-31 18:59 ` Lamar Owen <lamar.owen@wgcr.org>
2001-09-03 09:25 ` Gary Stainburn <gary.stainburn@ringways.co.uk>
2001-08-31 13:55 ` speedboy <speedboy@nomicrosoft.org>
2001-08-31 19:02 ` Lamar Owen <lamar.owen@wgcr.org>
2001-08-31 14:25 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-08-31 14:33 ` Lamar Owen <lamar.owen@wgcr.org>
2001-08-31 15:53 ` Nick Fankhauser <nickf@ontko.com>
2001-08-31 16:12 ` Shaun Thomas <sthomas@townnews.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox