libpq questions

Поиск
Список
Период
Сортировка
От James Harper
Тема libpq questions
Дата
Msg-id AEC6C66638C05B468B556EA548C1A77DAF067F@trantor
обсуждение исходный текст
Ответы Re: libpq questions  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
For the libpq interface:

I need to be able to know if a column in a result from a query is
nullable or not. From reading the documentation it seems that I can
obtain the following information:
. scan all the rows in the result and see if there exists a null value
for each column...
. backtrack the column to the source table (assuming a non-calculated
field) and check the nullable status there

Neither of the above is particularly cheap to do...

Which leads me to my next question... If I executed a select against a
table with a million rows, and the query returned all of the rows, what
happens? Are all the rows read into memory on the client before
returning the result? Or are rows only fetched from the server as
required?

Thanks

James

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

Предыдущее
От: "rlee0001"
Дата:
Сообщение: Re: 8.0.3 regexp_replace()...
Следующее
От: nboutelier@hotmail.com
Дата:
Сообщение: Can't get the field = ANY(array) clause to work...