From: | Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> |
---|---|
To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | navbarry(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Postgres Partitions Limitations (5.11.2.3) |
Date: | 2023-11-30 13:52:05 |
Message-ID: | CAExHW5u7PW_WQr5-rM6nT-cgjHj2-Ymw9Xj5F9qPTi=kec91dQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers |
On Fri, Oct 27, 2023 at 12:28 PM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> On Mon, 2023-01-09 at 16:40 +0100, Laurenz Albe wrote:
> > > "Using ONLY to add or drop a constraint on only the partitioned table is
> > > supported as long as there are no partitions. Once partitions exist, using
> > > ONLY will result in an error. Instead, constraints on the partitions
> > > themselves can be added and (if they are not present in the parent table)
> > > dropped." This seems in contradiction to the example involving adding a
> > > unique constraint while minimizing locking at the bottom of "5.11.2.2.
> > > Partition Maintenance", which seems to run fine on my local Pg instance:
> > >
> > > This technique can be used with UNIQUE and PRIMARY KEY constraints too; the
> > > indexes are created implicitly when the constraint is created. Example:
> >
> > No, that is actually an omission in the documentation.
> >
> > The attached patch tries to improve that.
>
> I am sending a reply to the hackers list, so that I can add the patch to the commitfest.
May be attach the patch to hackers thread (this) as well?
--
Best Wishes,
Ashutosh Bapat
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2023-11-30 16:59:04 | Re: Postgres Partitions Limitations (5.11.2.3) |
Previous Message | PG Doc comments form | 2023-11-30 13:50:04 | Typo in '8.5. Date/Time Types' v16 |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2023-11-30 14:33:04 | Re: trying again to get incremental backup |
Previous Message | Daniel Gustafsson | 2023-11-30 13:09:09 | Re: pg_dump/nls.mk is missing a file |