Re: BUG #17130: Error while executing request

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: BUG #17130: Error while executing request
Дата
Msg-id CAECtzeVwbMq2AFXN71wq7GT5PK_m3d5pt+pUC=BPKFo3or2aGw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #17130: Error while executing request  (Erik Rijkers <er@xs4all.nl>)
Ответы Re: BUG #17130: Error while executing request  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
Le mar. 3 août 2021 à 10:48, Erik Rijkers <er@xs4all.nl> a écrit :
On 8/3/21 9:20 AM, PG Bug reporting form wrote:
> CREATE SCHEMA "my_schema"
>      CREATE TABLE "my_ids" AS SELECT "a"."n" AS "id" FROM GENERATE_SERIES(1,
> 99) AS "a"("n");

Understandable: you forgot the semicolon after the create schema statement.


Actually, the syntax should be valid. You can add a DDL right after CREATE SCHEMA without a semicolon in between (see the examples on https://www.postgresql.org/docs/13/sql-createschema.html). But I fail to explain why it doesn't work here. A workaround would be to add the semicolon as you said, but it should work without.


--
Guillaume.

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

Предыдущее
От: sreekanth vajrapu
Дата:
Сообщение: LOG: Failed to reopen the file pg_stat/global.stat retrying
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17130: Error while executing request