pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@lists.postgresql.org
Subject: Re: keeping images in a bytea field on AWS RDS
Date: Tue, 31 Mar 2020 13:48:41 -0700
Message-ID: <5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca> (raw)
In-Reply-To: <CAKXm1c3nJZLMZ8BNN7Aa+cB2mXED1BC2T-D-hePnMZToHh-NKQ@mail.gmail.com>
References: <CAKXm1c3nJZLMZ8BNN7Aa+cB2mXED1BC2T-D-hePnMZToHh-NKQ@mail.gmail.com>

On Tue, 2020-03-31 at 15:49 -0400, 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?

You don't put a file path into a bytea field or do anything with the
database filesystem. You insert the contents of the actual file into the
field using SQL commands.

view thread (5+ messages)  latest in thread

Message-ID: <5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca>
Permalink:  ../5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca/
Also on:    postgresql.org/message-id/5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca

 · 

reply

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: ahodgson@lists.simkin.ca
  Subject: Re: keeping images in a bytea field on AWS RDS
  In-Reply-To: <5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca>
  References: <CAKXm1c3nJZLMZ8BNN7Aa+cB2mXED1BC2T-D-hePnMZToHh-NKQ@mail.gmail.com> <5e38b0f294ebca23aa19e7ad6409302481c1a447.camel@lists.simkin.ca>

* 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