public inbox for [email protected]  
help / color / mirror / Atom feed
From: Christophe Pettus <[email protected]>
To: Durgamahesh Manne <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: Regarding use of single column as primary key on partitioned table
Date: Fri, 27 Sep 2024 21:39:40 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAJCZko+pA8o3HDBuGzxzYjMo=Gm_8yBLk7Sod3Fdo-i0WAwLuA@mail.gmail.com>
References: <CAJCZko+pA8o3HDBuGzxzYjMo=Gm_8yBLk7Sod3Fdo-i0WAwLuA@mail.gmail.com>



> On Sep 27, 2024, at 21:25, Durgamahesh Manne <[email protected]> wrote:
> 
> Can't we use primary key on singal column(betid) on partitioned table rather than using composite key (placedon,betid)?

No.  Any unique constraint on a partitioned table must include the partition key, including a primary key constraint.





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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Regarding use of single column as primary key on partitioned table
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox