Re: [HACKERS] Re: psql and comments - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Re: psql and comments
Date
Msg-id 199910072354.TAA09368@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Re: psql and comments  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: Top N queries and disbursion
Next
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Re: PostgreSQL Help