Re: [HACKERS] Re: psql and comments

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Postgres Hackers List <hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Re: psql and comments
Date: 1999-10-07 23:54:29
Message-ID: 199910072354.TAA09368@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> OK, so the parser/planner/executor can cope with dummy input. That's
> good. There's still the problem of returning an 'empty query' response
> to the frontend. I think you'd probably need to hack up postgres.c
> so that when the querytree list produced by the parser is NIL, the
> IsEmptyQuery flag gets set --- this could be done instead of, rather
> than in addition to, the current test for an all-whitespace input
> buffer.

The system may already return that. My gram.y code tests for empty
queries, and should be doing the right thing. Not sure, because I am
not sure what to check for.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 1999-10-08 01:34:39 Re: [HACKERS] Re: PostgreSQL Help
Previous Message Bruce Momjian 1999-10-07 23:53:17 Re: [HACKERS] Re: Top N queries and disbursion