From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jay Stanley <beansboy@cruzio.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Question about accessing partitions whose name includes the schema name and a period - is this correct?
Date: Thu, 20 Apr 2023 00:03:34 -0400
Message-ID: <3066833.1681963414@sss.pgh.pa.us> (raw)
In-Reply-To: <2ed2c4ff76982806b708e8b9ae428a40@cruzio.com>
References: <f32e666f0a7696422f501e0d7dbbc2de@cruzio.com>
<3024332.1681940550@sss.pgh.pa.us>
<2ed2c4ff76982806b708e8b9ae428a40@cruzio.com>
Jay Stanley <beansboy@cruzio.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, beansboy@cruzio.com
Subject: Re: Question about accessing partitions whose name includes the schema name and a period - is this correct?
In-Reply-To: <3066833.1681963414@sss.pgh.pa.us>
References: <f32e666f0a7696422f501e0d7dbbc2de@cruzio.com> <3024332.1681940550@sss.pgh.pa.us> <2ed2c4ff76982806b708e8b9ae428a40@cruzio.com> <3066833.1681963414@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox