From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jorge Torralba <jorge.torralba@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Large Number Of Sequences in Database
Date: Thu, 21 Jul 2016 16:44:03 -0400
Message-ID: <29963.1469133843@sss.pgh.pa.us> (raw)
In-Reply-To: <CACut7uTUQ2qFTrCo2dFtSQRDX1Vg4UzzvxuObD0DTdd_nZ2USQ@mail.gmail.com>
References: <CACut7uTUQ2qFTrCo2dFtSQRDX1Vg4UzzvxuObD0DTdd_nZ2USQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Jorge Torralba <jorge.torralba@gmail.com> writes:
> Doing some forensic work on a Postgres 9.5 database that is in testing with
> only 19 relations and over 100,000 sequences. Once this database goes live,
> it could see in excess of 1 Million sequences created due to the complexity
> of the application. There are obvious risks such as pg_dump issues and slow
> response when scanning catalog table for info. But, are there any serious
> issues that can show up from this situation? I know theoretically, postgres
> can have unlimited tables in a database. But, I am looking for some
> realistic worse case scenarios in an environment like the one described.
Reminds me of this talk:
http://www.pgcon.org/2013/schedule/events/595.en.html
1M tables is a lot short of 1B, but still you'll start running into some
of the same issues Alvaro described. Personally I'd look for another way
to do it.
(We've occasionally batted around the idea of merging all sequences into
one catalog, which would help a lot; but the compatibility breakage that
would ensue is a bit daunting.)
regards, tom lane
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jorge.torralba@gmail.com
Subject: Re: Large Number Of Sequences in Database
In-Reply-To: <29963.1469133843@sss.pgh.pa.us>
* 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