Re: pg_toast oid limits
От | Joshua D. Drake |
---|---|
Тема | Re: pg_toast oid limits |
Дата | |
Msg-id | cb232f2c-6b52-8256-d50e-86aaa530c883@commandprompt.com обсуждение исходный текст |
Ответ на | pg_toast oid limits (Natalie Wenz <nataliewenz@ebureau.com>) |
Ответы |
Re: pg_toast oid limits
|
Список | pgsql-admin |
On 10/26/2016 11:58 AM, Natalie Wenz wrote: > Hi all, > > I am seeing some performance issues that I'm trying to track down on a large database. One of the things I'm beginningto suspect is a particularly large table with many columns, about 200 of which (type text) contain large chunksof data. Now, for a given row, maybe 10-30 of those columns contain data, so not all 200 for each row, but the datacan 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 references in the wiki and the hackers list to performance issueswhen you approach the 4 billion oids for a single table (which, I gather, are used when the data is toasted). Givenmy rudimentary understanding of how the whole toast thing works, I was wondering if there is a way to see how many oidsare used for a table, or another way to know if we're running into toast limits 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. oids are used per relation not per row. Your problem is likely more to do with the number of rows + the width of the table. I suggest finding a way to partition this table. Sincerely, JD -- Command Prompt, Inc. http://the.postgres.company/ +1-503-667-4564 PostgreSQL Centered full stack support, consulting and development. Everyone appreciates your honesty, until you are honest with them. Unless otherwise stated, opinions are my own.
В списке pgsql-admin по дате отправления: