Skip site navigation (1) Skip section navigation (2)

Re: Minor bug: Odd feedback on STDERR from PSQL for block comments

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Minor bug: Odd feedback on STDERR from PSQL for block comments
Date: 2003-11-08 21:21:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Josh Berkus <josh(at)agliodbs(dot)com> writes:
> Here's a non-showstopper in 7.4RC1, but probably good to fix before RC2:
> 1) Create a file with *only* a block comment in it, or with a block comment as 
> the very last line.
> 2) run psql -f filename database
> You will get some odd feedback on STDERR:

I can confirm the problem.  It happens in more cases than Josh mentions,
as well:
	-- running the file with \i also shows the problem
	-- there can be blank lines and whitespace after the
	   block comment, and it still shows up.

Example: z.sql contains

--- snip ---
select 2+2;
/* block */

    -- z
--- snip ---

regression=# \i z.sql
(1 row)

psql:z.sql:5: regression=#

Peter, do you have time to look at this?  You're probably more familiar
than I am with the psql command loop.

			regards, tom lane

In response to


pgsql-bugs by date

Next:From: Micah YoderDate: 2003-11-08 21:21:43
Subject: Re: The postmaster keeps crashing
Previous:From: Bruce MomjianDate: 2003-11-08 20:56:12
Subject: Re: [HACKERS] postgresql-7.4RC1 - unrecognized privilege type

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group