list limit for IN predicate? - Mailing list pgsql-hackers

From Dennis Roesler
Subject list limit for IN predicate?
Date
Msg-id 36CC22D4.C4C8A121@am.exch.hp.com
Whole thread Raw
List pgsql-hackers
Does anyone know what the maximum number of items there can be in a list
for the IN predicate.  I have a maintenance script that extracts
information from one dB, builds a list for the IN predicate, connects to
a different dB, and runs a query based on the list generated.  In one
instance the list that was built had ~450 items in the list, which
crashed the server.

Is it a matter of the size of the list in characters and not items in
the list?  The whole list, including the quotes around the items in the
list, commas, etc. was ~5k characters.

Thanks

Dennis

---------------------------------------------------------------------------


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Transaction logging
Next
From: Douglas.Inkster@cai.com (Inkster, Douglas)
Date:
Subject: RE: list limit for IN predicate?