Re: [HACKERS] Problem after removal of exec(), help

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: dg(at)illustra(dot)com (David Gould)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Problem after removal of exec(), help
Date: 1998-06-23 18:42:26
Message-ID: 199806231842.OAA07037@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Replacing the postgres binary with a shell script that executes the real
> postgres binary and then moves the gmon.out file out of the way.
>
> $ mv postgres postgres.bin
> $cat > postgres
> #!/bin/sh
> postgres.bin $*
> mv gmon.out gmon.$$
> ^D
> $ postmaster ...
> $ psql template1
>

Ah, I see. Re-enabling exec() is not a trivial job. Perhaps you can put a
system("mv ...") call in the postmaster backend cleanup code.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-06-23 18:59:14 Re: btree: BTP_CHAIN flag was expected (revisited)
Previous Message Bruce Momjian 1998-06-23 18:38:02 Re: [HACKERS] I thought we had fixed this for v6.3.2 ...?