Re: Limitation of prepared statement name
От | Tom Lane |
---|---|
Тема | Re: Limitation of prepared statement name |
Дата | |
Msg-id | 28416.1535473275@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Limitation of prepared statement name (Flavio Henrique Araque Gurgel <fhagur@gmail.com>) |
Ответы |
Re: Limitation of prepared statement name
|
Список | pgsql-docs |
Flavio Henrique Araque Gurgel <fhagur@gmail.com> writes: > It seems that naming prepared statements is limited to 63 characters as per > https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Yeah, just like every other SQL identifier in Postgres... > The dangerous situation is that PostgreSQL seems to ignore rigthmost > overflowed characters silently. It's hardly silent: regression=# prepare foo1234567890123456789012345678901234567890123456789012345678901234567890 as select 1; NOTICE: identifier "foo1234567890123456789012345678901234567890123456789012345678901234567890" will be truncated to "foo123456789012345678901234567890123456789012345678901234567890" PREPARE > Wouldn't it be good to include that information on the prepared statement > doc page? You could as well argue that every single page that describes creating any sort of object ought to repeat this information. I doubt that people would find that to be an improvement. regards, tom lane
В списке pgsql-docs по дате отправления: