public inbox for [email protected]  
help / color / mirror / Atom feed
Document the limit on the number of parameters
5+ messages / 4 participants
[nested] [flat]

* Document the limit on the number of parameters
@ 2018-07-17 13:25  PG Doc comments form <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: PG Doc comments form @ 2018-07-17 13:25 UTC (permalink / raw)
  To: [email protected]; +Cc: [email protected]

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/static/sql-prepare.html
Description:

The backend protocol limits the number of parameters that can be passed for
a prepared statement to 32767 (2 byte signed integer).

As that is something that is independent of the client library, I think this
should be documented in the user facing manual for the Postgres server
somewhere. 

I did not find anything in the chapter about PREPARE
https://www.postgresql.org/docs/current/static/sql-prepare.html or about the
backend protocol:
https://www.postgresql.org/docs/current/static/protocol.html nor on the FAQ
page: https://wiki.postgresql.org/wiki/FAQ


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Document the limit on the number of parameters
@ 2018-08-07 21:58  Bruce Momjian <[email protected]>
  parent: PG Doc comments form <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Bruce Momjian @ 2018-08-07 21:58 UTC (permalink / raw)
  To: [email protected]; [email protected]

On Tue, Jul 17, 2018 at 01:25:08PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/10/static/sql-prepare.html
> Description:
> 
> The backend protocol limits the number of parameters that can be passed for
> a prepared statement to 32767 (2 byte signed integer).
> 
> As that is something that is independent of the client library, I think this
> should be documented in the user facing manual for the Postgres server
> somewhere. 
> 
> I did not find anything in the chapter about PREPARE
> https://www.postgresql.org/docs/current/static/sql-prepare.html or about the
> backend protocol:
> https://www.postgresql.org/docs/current/static/protocol.html nor on the FAQ
> page: https://wiki.postgresql.org/wiki/FAQ

Uh, is this something people will care about?

-- 
  Bruce Momjian  <[email protected]>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Document the limit on the number of parameters
@ 2018-08-08 02:06  Stephen Frost <[email protected]>
  parent: Bruce Momjian <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Stephen Frost @ 2018-08-08 02:06 UTC (permalink / raw)
  To: Bruce Momjian <[email protected]>; +Cc: [email protected]; [email protected]

Greetings,

* Bruce Momjian ([email protected]) wrote:
> On Tue, Jul 17, 2018 at 01:25:08PM +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> > 
> > Page: https://www.postgresql.org/docs/10/static/sql-prepare.html
> > Description:
> > 
> > The backend protocol limits the number of parameters that can be passed for
> > a prepared statement to 32767 (2 byte signed integer).
> > 
> > As that is something that is independent of the client library, I think this
> > should be documented in the user facing manual for the Postgres server
> > somewhere. 
> > 
> > I did not find anything in the chapter about PREPARE
> > https://www.postgresql.org/docs/current/static/sql-prepare.html or about the
> > backend protocol:
> > https://www.postgresql.org/docs/current/static/protocol.html nor on the FAQ
> > page: https://wiki.postgresql.org/wiki/FAQ
> 
> Uh, is this something people will care about?

Seems like a limitation in the backend protocol should probably be
documented in the backend protocol section of the docs..

Thanks!

Stephen


Attachments:

  [application/pgp-signature] signature.asc (819B, 2-signature.asc)
  download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Document the limit on the number of parameters
@ 2018-08-08 02:59  Tom Lane <[email protected]>
  parent: Stephen Frost <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2018-08-08 02:59 UTC (permalink / raw)
  To: Stephen Frost <[email protected]>; +Cc: Bruce Momjian <[email protected]>; [email protected]; [email protected]

Stephen Frost <[email protected]> writes:
> * Bruce Momjian ([email protected]) wrote:
>> On Tue, Jul 17, 2018 at 01:25:08PM +0000, PG Doc comments form wrote:
>>> The backend protocol limits the number of parameters that can be passed for
>>> a prepared statement to 32767 (2 byte signed integer).

>> Uh, is this something people will care about?

> Seems like a limitation in the backend protocol should probably be
> documented in the backend protocol section of the docs..

It is: the definition of the Bind message format says that the parameter
count is an int16.

The question is whether this deserves to be cross-referenced from
elsewhere.  I agree with Bruce that it seems unlikely to be helpful.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Document the limit on the number of parameters
@ 2018-08-08 03:01  Stephen Frost <[email protected]>
  parent: Tom Lane <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: Stephen Frost @ 2018-08-08 03:01 UTC (permalink / raw)
  To: Tom Lane <[email protected]>; +Cc: Bruce Momjian <[email protected]>; [email protected]; [email protected]

Greetings Tom,

* Tom Lane ([email protected]) wrote:
> Stephen Frost <[email protected]> writes:
> > * Bruce Momjian ([email protected]) wrote:
> >> On Tue, Jul 17, 2018 at 01:25:08PM +0000, PG Doc comments form wrote:
> >>> The backend protocol limits the number of parameters that can be passed for
> >>> a prepared statement to 32767 (2 byte signed integer).
> 
> >> Uh, is this something people will care about?
> 
> > Seems like a limitation in the backend protocol should probably be
> > documented in the backend protocol section of the docs..
> 
> It is: the definition of the Bind message format says that the parameter
> count is an int16.
> 
> The question is whether this deserves to be cross-referenced from
> elsewhere.  I agree with Bruce that it seems unlikely to be helpful.

Ah, I read the original poster as saying that it wasn't in the protocol
docs.  If it's there already then I agree, that's sufficient.

Thanks!

Stephen


Attachments:

  [application/pgp-signature] signature.asc (819B, 2-signature.asc)
  download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2018-08-08 03:01 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17 13:25 Document the limit on the number of parameters PG Doc comments form <[email protected]>
2018-08-07 21:58 ` Bruce Momjian <[email protected]>
2018-08-08 02:06   ` Stephen Frost <[email protected]>
2018-08-08 02:59     ` Tom Lane <[email protected]>
2018-08-08 03:01       ` Stephen Frost <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox