Re: The length of the sql query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: The length of the sql query
Дата
Msg-id 4455.1156430065@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: The length of the sql query  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-sql
Emi Lu <emilu@encs.concordia.ca> writes:
> Could someone tell me where I can find PostgreSQL doc about the query 
> length please

The theoretical limit is 1Gb (because palloc won't allow creation of a
longer string than that).  The practical limit is probably a great deal
less, especially if you don't have a 64-bit machine with gobs of memory,
because the query text itself is hardly the major consumer of memory
for any real-world query.

Your question is really entirely meaningless when you haven't specified
exactly what sort of query you're thinking of or what kind of platform
you intend to try to run it on.

The 1Gb upper limit for MySQL is a pretty academic number too, for
exactly the same reasons.  Have you tried putting a 1Gb query string
into MySQL?
        regards, tom lane


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

Предыдущее
От: Emi Lu
Дата:
Сообщение: Re: The length of the sql query
Следующее
От: Sumeet
Дата:
Сообщение: Importing data from csv