Re: Fix error message for MERGE foreign tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix error message for MERGE foreign tables
Date
Msg-id 1184053.1665758614@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fix error message for MERGE foreign tables  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: Fix error message for MERGE foreign tables  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
Richard Guo <guofenglinux@gmail.com> writes:
> Or maybe we can make it even earlier, when we expand an RTE for a
> partitioned table and add result tables to leaf_result_relids.

I'm not really on board with injecting command-type-specific logic into
completely unrelated places just so that we can throw an error a bit
earlier.  Alvaro's suggestion of make_modifytable seemed plausible,
not least because it avoids spending any effort when the command
couldn't be MERGE at all.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Dagfinn Ilmari Mannsåker
Date:
Subject: Re: [PATCH] Improve tab completion for ALTER TABLE on identity columns
Next
From: Karina Litskevich
Date:
Subject: Re: Error for WITH options on partitioned tables