Re: [HACKERS] Alternative to LIMIT in SELECT ? - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [HACKERS] Alternative to LIMIT in SELECT ?
Date
Msg-id 199810140553.OAA22316@srapc451.sra.co.jp
Whole thread Raw
In response to Re: [HACKERS] Alternative to LIMIT in SELECT ?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Alternative to LIMIT in SELECT ?  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
>> + #ifdef QUERY_LIMIT
>> + static bool
>> + parse_query_limit(const char *value)
>> + {
>> +   int32 limit;
>> +
>> +   if (value == NULL) {
>> +     reset_query_limit();
>> +     return(TRUE);
>> +   }
>
>Any idea how 'value' could be null?  I could not see how that would
>happen.

Not sure. I just followed the way other set commands are doing.

>I can see how GEQO could have a NULL when you say ON, and no
>value.  Same with rplans.

Hmm... I think in that case, 'value' would be 'ON', not NULL. right?
--
Tatsuo Ishii
t-ishii@sra.co.jp

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Alternative to LIMIT in SELECT ?
Next
From: Tom Ivar Helbekkmo
Date:
Subject: Re: [HACKERS] Re: inet/cidr/bind