From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mate Varga <m@matevarga.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_upgrade with large pg_largeobject table
Date: Tue, 14 Aug 2018 14:16:15 -0400
Message-ID: <7806.1534270575@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK4GaZ782vw5vDSV0BEhGVu62GVyTsnHeRctYNzrtMiBwmJ4Dw@mail.gmail.com>
References: <CAK4GaZ551DKU=W4fuWYS1cgwftMT-jy7oBZsX65rCfbazDARVA@mail.gmail.com>
<6945.1534269481@sss.pgh.pa.us>
<CAK4GaZ782vw5vDSV0BEhGVu62GVyTsnHeRctYNzrtMiBwmJ4Dw@mail.gmail.com>
Mate Varga <m@matevarga.net> writes:
>> Using the large-object API for things that tend to not actually be very
>> large (which they aren't, if you've got hundreds of millions of 'em) is an
>> antipattern, I'm afraid.
> I know :( So maybe I need to do some refactoring in the application and
> inline the lobs. The data is binary data with very high entropy (encrypted
> stuff). Would you recommend bytea for that?
Yeah, it'd likely be less of a pain-in-the-neck than text. You would need
some sort of encoding anyway to deal with zero bytes and sequences that
aren't valid per your encoding, so you might as well go with bytea's
solution.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, m@matevarga.net
Subject: Re: pg_upgrade with large pg_largeobject table
In-Reply-To: <7806.1534270575@sss.pgh.pa.us>
References: <CAK4GaZ551DKU=W4fuWYS1cgwftMT-jy7oBZsX65rCfbazDARVA@mail.gmail.com> <6945.1534269481@sss.pgh.pa.us> <CAK4GaZ782vw5vDSV0BEhGVu62GVyTsnHeRctYNzrtMiBwmJ4Dw@mail.gmail.com> <7806.1534270575@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