From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: vacuum vs vacuum full
Date: Wed, 18 Nov 2020 10:45:30 -0600
Message-ID: <734e6c91-8cf9-008a-5f49-1061478e12e3@gmail.com> (raw)
In-Reply-To: <da652dd72d8c1b08f01c131ac2a98dcc0df96b1b.camel@cybertec.at>
References: <CA+ONtZ5QFB7yc110XdE_d8=7z7HXB_DiNbJ39sz8nf3uUPMcTw@mail.gmail.com>
<CAJ7S9TWGN01KhO636AWFUVtEFqMkRtf6qaPH6B9VkaN_4spORg@mail.gmail.com>
<80603b4e-058c-fd9e-8e8c-50010dc32572@gmail.com>
<1933cd6b-45b0-be1f-3a05-dd02e341ec28@gmx.net>
<da652dd72d8c1b08f01c131ac2a98dcc0df96b1b.camel@cybertec.at>
On 11/18/20 6:02 AM, Laurenz Albe wrote:
> On Wed, 2020-11-18 at 10:57 +0100, Thomas Kellerer wrote:
>>> No matter how long it takes, this is an excellent argument for
>>> partitioning Very Large Tables: many maintenance tasks are made
>>> *much* easier.
>> The problem is, you can't partition every table as long as Postgres
>> does not support a primary key that is independent of the partitioning key
>> (i.e. until it has "global indexes" as they are called in Oracle)
> I personally hope that we will never have global indexes.
> I am not looking forward to helping customers with the problems that
> they create (long duration of ATTACH/DETACH PARTITION, index fragmentation).
I've been using what Oracle calls "global indexes" for 20 years. They're
super useful when -- for example -- you want to partition a transaction
table by a date field, while the PK is synthetic.
Up until about two years ago, I purged old data every six months. (Then it
was migrated from the legacy RDBMS to Oracle.)
Yes, you've got to drop and rebuild the indices, but that's a small price to
pay for the simplicity of archiving (especially when the indices are built
in parallel).
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: vacuum vs vacuum full
In-Reply-To: <734e6c91-8cf9-008a-5f49-1061478e12e3@gmail.com>
References: <CA+ONtZ5QFB7yc110XdE_d8=7z7HXB_DiNbJ39sz8nf3uUPMcTw@mail.gmail.com> <CAJ7S9TWGN01KhO636AWFUVtEFqMkRtf6qaPH6B9VkaN_4spORg@mail.gmail.com> <80603b4e-058c-fd9e-8e8c-50010dc32572@gmail.com> <1933cd6b-45b0-be1f-3a05-dd02e341ec28@gmx.net> <da652dd72d8c1b08f01c131ac2a98dcc0df96b1b.camel@cybertec.at> <734e6c91-8cf9-008a-5f49-1061478e12e3@gmail.com>
* 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