Re: [HACKERS] Alternative to LIMIT in SELECT ?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Alternative to LIMIT in SELECT ?
Дата
Msg-id 199810141618.MAA26677@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Alternative to LIMIT in SELECT ?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список 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?

Yes, I think so, value would be ON.  I will look into it.

--
  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, Pennsylvania 19026

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Billy G. Allie"
Дата:
Сообщение: Re: [HACKERS] PostgreSQL v6.4 BETA2 ...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Alternative to LIMIT in SELECT ?