psql and comments - Mailing list pgsql-hackers

From Thomas Lockhart
Subject psql and comments
Date
Msg-id 37FB57AD.5BA86412@alumni.caltech.edu
Whole thread Raw
Responses Re: [HACKERS] psql and comments  (Bruce Momjian <maillist@candle.pha.pa.us>)
Re: psql and comments  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
While you're at it...

The following example shows psql correctly clearing its input buffer
when a line containing *only* a comment is seen, but not completely
clearing the buffer (or not realizing that it is cleared; note the
changed prompt) if the comment is at the end of a valid query.

postgres=> -- comment
postgres=> select 'hi'; -- comment
?column?
--------
hi      
(1 row)

postgres->
                   - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: [GENERAL] Re: [PHP3] Re: PostgreSQL vs Mysqlcomparison
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] libpq++ doc error?