Re: Max length for a select or other command

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: Patrick Robin <Patrick(dot)Robin(at)disney(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Max length for a select or other command
Date: 2000-07-13 22:21:31
Message-ID: 396E40EB.A923F055@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Patrick Robin wrote:
>
> Is there a limit to the length in characters for a select command in
> Postgres?
>
> Thanks

No. There isn't a limit with regarding the selecting of data out
of PostgreSQL. But there currently is a record limit of around 8K
(generally speaking) in 7.0.x. So you could have a query, for
example, which appends 100K of string constants as apart of a
select. Anyway, that limit is scheduled to be removed in 7.1,
allowing you to store objects of an arbitrary size in the
database. This includes the excellent implementation of NUMERIC,
which performs arithmetic of arbitrary precision. Have a look at:

http://www.postgresql.org/projects/devel-toast.html

for details. I believe there might also exist some limitations
remaining in some of the interfaces, but I'm not quote sure. I
know that libpq, the C interface library, has had all query
length limits removed.

Hope that helps,

Mike Mascari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-07-13 22:33:20 Re: Figured it out (psql and Gnu readline)
Previous Message Sean Alphonse 2000-07-13 22:15:54