Re: I want to send comments to the backend! - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: I want to send comments to the backend!
Date
Msg-id 200303210559.h2L5xv110719@candle.pha.pa.us
Whole thread Raw
In response to Re: I want to send comments to the backend!  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
I now understand that IsUnderPostmaster isn't needed, as you suggested
below.


---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > OK, this patch fixes the comment passing bug.  I remove the strspn() and
> > added a boolean to test if any parsetree had been generated --- if not,
> > I call NullCommand().
> 
> Seems like the hard way.  I had in mind a quick
> 
>     if (parsetree_list == NIL)
>     {
>         NullCommand(dest);
>         return;
>     }
> 
> before entering the main loop.  It'd take a small amount of reordering
> of the existing code to make this happen without adding any more code
> than that, but it looked doable.
> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: I want to send comments to the backend!
Next
From: Tom Lane
Date:
Subject: Re: I want to send comments to the backend!