Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzTRA-0006e9-7w for pgsql-admin@arkaria.postgresql.org; Wed, 26 Oct 2016 19:00:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bzTR9-0003U1-Qx for pgsql-admin@arkaria.postgresql.org; Wed, 26 Oct 2016 19:00:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bzTPU-0001Xi-0E for pgsql-admin@postgresql.org; Wed, 26 Oct 2016 18:58:48 +0000 Received: from internet06.ebureau.com ([65.127.24.25]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzTPH-0006u4-O6 for pgsql-admin@postgresql.org; Wed, 26 Oct 2016 18:58:47 +0000 Received: from localhost (localhost [127.0.0.1]) by internet06.ebureau.com (Postfix) with ESMTP id B4AB66667691 for ; Wed, 26 Oct 2016 13:58:33 -0500 (CDT) X-Virus-Scanned: amavisd-new at ebureau.com Received: from internet06.ebureau.com ([127.0.0.1]) by localhost (internet06.ebureau.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EBLAbq8eYTnE for ; Wed, 26 Oct 2016 13:58:33 -0500 (CDT) Received: from [172.16.2.113] (unknown [67.148.93.60]) by internet06.ebureau.com (Postfix) with ESMTPSA id A1B366667685 for ; Wed, 26 Oct 2016 13:58:32 -0500 (CDT) From: Natalie Wenz Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: pg_toast oid limits Message-Id: Date: Wed, 26 Oct 2016 13:58:29 -0500 To: pgsql-admin Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi all, I am seeing some performance issues that I'm trying to track down on a larg= e database. One of the things I'm beginning to suspect is a particularly la= rge table with many columns, about 200 of which (type text) contain large c= hunks of data. Now, for a given row, maybe 10-30 of those columns contain d= ata, so not all 200 for each row, but the data can still be pretty sizable.= There are currently around 750 million records in this table (and is about= 22TB in size). I was trying to learn more about toast, and I see some refe= rences in the wiki and the hackers list to performance issues when you appr= oach the 4 billion oids for a single table (which, I gather, are used when = the data is toasted). Given my rudimentary understanding of how the whole t= oast thing works, I was wondering if there is a way to see how many oids ar= e used for a table, or another way to know if we're running into toast limi= ts for a single table. What I was reading, for reference: https://wiki.postgresql.org/wiki/TOAST http://osdir.com/ml/postgresql-pgsql-hackers/2015-01/msg01901.html Also, we are running postgres 9.5.4.=20 Many thanks! Natalie --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin