From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: keeping images in a bytea field on AWS RDS
Date: Tue, 31 Mar 2020 15:52:18 -0500
Message-ID: <8dc1619c-b29e-17ae-7ae7-1dd3928c7bb6@gmail.com> (raw)
In-Reply-To: <CAKXm1c3nJZLMZ8BNN7Aa+cB2mXED1BC2T-D-hePnMZToHh-NKQ@mail.gmail.com>
References: <CAKXm1c3nJZLMZ8BNN7Aa+cB2mXED1BC2T-D-hePnMZToHh-NKQ@mail.gmail.com>
On 3/31/20 2:49 PM, Richard Bernstein wrote:
> I am using postgresql on RDS. I need to upload an image to the table. I
> understand that I need to set the PGDATA directory and place the image
> file in it, before setting the path in the bytea field. But how do I set
> PGDATA if I don't have the ability to set an environment variable, and
> don't have access to the following on an AWS controlled installation?
>
> $ initdb -D /usr/local/pgsql/data
> or
> pg_ctl -D /usr/local/pgsql/data initdb
initdb is definitely *not* what you want to do just to load an image into an
exiting database.
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: keeping images in a bytea field on AWS RDS
In-Reply-To: <8dc1619c-b29e-17ae-7ae7-1dd3928c7bb6@gmail.com>
References: <CAKXm1c3nJZLMZ8BNN7Aa+cB2mXED1BC2T-D-hePnMZToHh-NKQ@mail.gmail.com> <8dc1619c-b29e-17ae-7ae7-1dd3928c7bb6@gmail.com>
* 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