From: Vivek Khera <khera@kcilink.com>
To: pgsql-performance@postgresql.org
Subject: Re: Adding foreign key performance
Date: Tue, 28 Oct 2003 14:22:04 -0500
Message-ID: <x7ekwxdv6r.fsf@yertle.int.kciLink.com> (raw)
References: <20031028091645.3d610841.threshar@torgo.978.org>
>>>>> "J" == Jeff <threshar@torgo.978.org> writes:
J> And this leads to the place we'd get a huge benefit: Restoring
J> backups.. If there were some way to bump up sort_mem while doing
J> the restore.. things would be much more pleasant. [Although, even
There was a rather substantial thread on this about the time when
7.4b1 was released.
J> better would be to disable FK stuff while restoring a backup and
J> assume the backup is "sane"] How we'd go about doing that is the
J> subject of much debate.
If you're restoring from a pg_dump -Fc (compressed dump) it already
happens for you. The indexes and foreign keys are not added until the
very end, from what I recall.
J> Perhaps add the functionality to pg_restore? ie, pg_restore -s
J> 256MB mybackup.db? It would just end up issuing a set
J> sort_mem=256000..
This was essentially my proposal, though I had better speed
enhancement by increasing the number of checkpoint buffers.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
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: khera@kcilink.com
Subject: Re: Adding foreign key performance
In-Reply-To: <x7ekwxdv6r.fsf@yertle.int.kciLink.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