pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: stepya@ukr.net
Subject: BUG #16021: Can create Pk on partitioned table with foreign table as partition
Date: Wed, 25 Sep 2019 07:11:28 +0000
Message-ID: <16021-173fccc4c9c27f8d@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16021
Logged by:          Stepan Yankevych
Email address:      stepya@ukr.net
PostgreSQL version: 11.5
Operating system:   CentOS Linux release 7.3.1611 (Core)
Description:        

As far as I can see  the issue has been fixed in 11.5 with following
resolution: 
Ignore partitions that are foreign tables when creating indexes on
partitioned tables (Álvaro Herrera) 
Previously an error was thrown on encountering a foreign-table partition,
but that's unhelpful and doesn't protect against any actual problem.

But I still can't create Pk on partitioned table

See details: 
SELECT version();
PostgreSQL 11.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623
(Red Hat 4.8.5-36), 64-bit

ALTER TABLE fix_capture.fix_message_json ADD CONSTRAINT fix_message_json_pk
PRIMARY KEY (fix_message_id,date_id); 
SQL Error [42809]: ERROR: cannot create unique index on partitioned table
"fix_message_json"
  Detail: Table "fix_message_json" contains partitions that are foreign
tables.

Have I missed something?



view thread (2+ messages)  latest in thread

Message-ID: <16021-173fccc4c9c27f8d@postgresql.org>
Permalink:  ../16021-173fccc4c9c27f8d@postgresql.org/
Also on:    postgresql.org/message-id/16021-173fccc4c9c27f8d@postgresql.org

 · 

reply

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, stepya@ukr.net
  Subject: Re: BUG #16021: Can create Pk on partitioned table with foreign table as partition
  In-Reply-To: <16021-173fccc4c9c27f8d@postgresql.org>
  References: <16021-173fccc4c9c27f8d@postgresql.org>

* 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