Natalie Wenz <nataliewenz@xxxxxxxxxxx> writes: > I'm a little confused about the limit. Is it 4 billion oids for the whole database, or just per table? I keep coming back to this line, from https://wiki.postgresql.org/wiki/TOAST : Per table --- the problem is you need a unique 4-byte chunk_id for each toasted field value. > "If you exceed 4 billion of these rows across all tables (remember this is a global shared wrapping counter), then the OID counter "wraps" which might cause significant slowdown as you approach the 4B row limit." Um. That could use improvement, couldn't it. The numbers are sourced from a global counter, but as the counter wraps around it's possible for the same number to be re-used in different toast tables. You only start to see a problem when the density of already-used numbers in a particular toast table gets too high, so that the system has to spend a long time searching for the next free number. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin