Re: Question about accessing partitions whose name includes the schema name and a period - is this correct?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jay Stanley <beansboy(at)cruzio(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Question about accessing partitions whose name includes the schema name and a period - is this correct?
Date: 2023-04-20 04:03:34
Message-ID: 3066833.1681963414@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jay Stanley <beansboy(at)cruzio(dot)com> writes:
> However, it's failing on partition-management SQL like:

> postgres=# alter table my_schema.my_table drop partition
> "my_schema"."my_schema.my_table_should_not_work";
> ERROR: syntax error at or near ""my_schema""
> LINE 1: alter table my_schema.my_table drop partition "my_schema"."m...
> ^

I'm not sure why the error cursor is pointing there, but
"drop partition" is not a valid subcommand. Try "detach
partition".

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message vignesh C 2023-04-20 06:19:13 Re: Logical replication failed with SSL SYSCALL error
Previous Message shveta malik 2023-04-20 03:41:34 Re: Support logical replication of DDLs