Re: RC1?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RC1?
Date: 2002-11-13 00:04:29
Message-ID: 17111.1037145869@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-ports

"scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com> writes:
> Ok, now that I've run it that way, the last couple of pages of output
> look like this:

Hm. So the "while read line" loop is iterating only once.

I was thinking to myself that something within the while loop must be
eating up stdin, so that there's nothing left for the "while read" to
read when control returns to the top of the loop. This strengthens that
theory. Now, exactly what is reading stdin?

My suspicion falls on the very-recently-added awk calls. Try changing

(echo "SET autocommit TO 'on';"; awk 'BEGIN {printf "\\set ECHO all\n"}'; cat "$inputdir/sql/$1.sql") |

to

(echo "SET autocommit TO 'on';"; awk 'BEGIN {printf "\\set ECHO all\n"}' </dev/null; cat "$inputdir/sql/$1.sql") |

(there are two places to do this)

regards, tom lane

In response to

  • Re: RC1? at 2002-11-12 23:41:50 from scott.marlowe

Responses

  • Re: RC1? at 2002-11-13 16:38:13 from scott.marlowe

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2002-11-13 01:50:51 Re: Prepare enabled pgbench
Previous Message scott.marlowe 2002-11-12 23:41:50 Re: RC1?

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 2002-11-13 02:23:51 Re: PostgreSQL 7.2 with AIX 4.3.3
Previous Message scott.marlowe 2002-11-12 23:41:50 Re: RC1?