pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stacy White <harsh@computer.org>
To: pgsql-performance@postgresql.org
Subject: Re: What needs to be done for real Partitioning?
Date: Sat, 19 Mar 2005 14:54:20 -0800
Message-ID: <001d01c52cd6$9702be10$0200a8c0@grownups> (raw)
References: <200503191202.38089.josh@agliodbs.com>
	<18168.1111265368@sss.pgh.pa.us>

From: "Tom Lane" <tgl@sss.pgh.pa.us>
> Josh Berkus <josh@agliodbs.com> writes:
> > -- INSERT INTO should automatically create new partitions where
necessary
> > -- DELETE FROM should automatically drop empty partitions
>
> I am not sure I agree with either of those, and the reason is that they
> would turn low-lock operations into high-lock operations.

I second this.  We're current using an inheritance based partitioning scheme
with automatic partition creation in the application code, and have seen at
least one case of deadlock due to partition creation.

Other phase II/III items might include:

- Modify the partitioning scheme of a table.  In the above example, adding a
'200504' partition, and moving the '200502' orders into 'ARCHIVE'

- The ability to place a partition in a tablespace.  In the example above,
it would be nice to put the 'ARCHIVE' partition would likely be placed on a
slower set of disks than the most recent month's partition.

- Global indexes (that is to say, an index spanning the the table rather
than an individual partition).  This seems counterintuitive, but they've
dramatically increased performance on one of our Oracle systems and should
at least be worth considering.




view thread (45+ messages)  latest in thread

Message-ID: <001d01c52cd6$9702be10$0200a8c0@grownups>
Permalink:  ../001d01c52cd6$9702be10$0200a8c0@grownups/
Also on:    postgresql.org/message-id/001d01c52cd6$9702be10$0200a8c0@grownups

 · 

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: pgsql-performance@postgresql.org
  Cc: harsh@computer.org
  Subject: Re: What needs to be done for real Partitioning?
  In-Reply-To: <001d01c52cd6$9702be10$0200a8c0@grownups>

* 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