Is a limitation for the number of large objects that can be stored in a PostgreSQL database?

Started by u15074about 23 years ago2 messagesgeneral
Jump to latest
#1u15074
u15074@hs-harz.de

I want to store a lot of binary data (but not so big) as large objects in a
PostgreSQl database.
Since the large objects are referenced by an identifier of type oid, which is of
type unsigned int (right?), my question is, if the number of large objects that
can be stored in the database is limited by the range of the oid?

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

#2Doug McNaught
doug@mcnaught.org
In reply to: u15074 (#1)
Re: Is a limitation for the number of large objects that can be stored in a PostgreSQL database?

u15074 <u15074@hs-harz.de> writes:

I want to store a lot of binary data (but not so big) as large
objects in a PostgreSQl database. Since the large objects are
referenced by an identifier of type oid, which is of type unsigned
int (right?), my question is, if the number of large objects that
can be stored in the database is limited by the range of the oid?

Well, yes. But that's more than 4 billion objects--you're much more
likely to run out of disk space before you run out of OIDs.

-Doug