Re: pg_table_size errors "invalid name syntax" for table names containing spaces

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: pg_table_size errors "invalid name syntax" for table names containing spaces
Дата
Msg-id CAKFQuwb5rTHJ6fcLo8d1jWs3-6=bZ7+mg0U7Z_xJCHTU-cyNEw@mail.gmail.com
обсуждение исходный текст
Ответ на pg_table_size errors "invalid name syntax" for table names containing spaces  (Michel Helms <michel@togetherdb.com>)
Ответы Re: pg_table_size errors "invalid name syntax" for table names containing spaces
Список pgsql-bugs


On Thursday, June 10, 2021, Michel Helms <michel@togetherdb.com> wrote:

CREATE TABLE "wei rd" (id SERIAL);
SELECT pg_table_size('wei rd');

So just creating a table containing spaces, the pg_table_size, also pg_total_relation_size and maybe other administrative functions fail with error message "invalid name syntax".

You still have to double-quote the name even if its being passed around in a string literal.

David J.
 

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17055: Logical replication worker crashes when applying update of row that dose not exist in target partiti
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_table_size errors "invalid name syntax" for table names containing spaces