Re: [HACKERS] psql and comments

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, Postgres Hackers List <hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] psql and comments
Date: 1999-10-07 21:47:43
Message-ID: Pine.LNX.4.10.9910072343450.848-100000@peter-e.yi.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Oct 7, Bruce Momjian mentioned:

> > Things aren't a big problem the way they stand, but istm that a
> > completely blank line (after stripping single-line comments) may as
> > well be the same as an empty line,and that psql could figure that out.
>
> I see your point in the above example. I will wait for the psql/libpq
> cleaner-upper to finish, and take a look at it.

Oh, now I'm cleaning up libpq as well??? 8-}

Well anyway, by a vote of 1 1/2 to 1 psql will strip all comments before
sending a query, probably in a C pre-processor kind of way.

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-10-07 22:09:43 Re: [HACKERS] psql and comments
Previous Message Bruce Momjian 1999-10-07 17:50:30 Re: [HACKERS] Re: psql and comments