pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Postgres Admin <postgres@productivitymedia.com>
Cc: PostgreSQL - Admin <pgsql-admin@postgresql.org>
Cc: PostgreSQL - PHP <pgsql-php@postgresql.org>
Cc: PostgreSQL - SQL <pgsql-sql@postgresql.org>
Subject: Re: Data insert
Date: Sat, 20 Aug 2005 11:47:53 -0600
Message-ID: <20050820174753.GA68467@winnie.fuhr.org> (raw)
In-Reply-To: <430765C3.9090309@productivitymedia.com>
References: <430765C3.9090309@productivitymedia.com>

On Sat, Aug 20, 2005 at 01:17:55PM -0400, Postgres Admin wrote:
> I don't have any idea how to insert the type of data into PostgreSQL. 
> Basically, it's encrypted data in which I would like that keep raw format.

If the data is binary then you could store it in a BYTEA column.  How
to get such data into the database depends on the client interface --
you could escape the data appropriately and embed it into an INSERT
statement, or you could use a parameterized query that either
transfers binary data using the PostgreSQL protocol (available in
7.4 and later) or automatically escapes the data.  See your interface
documentation for more information.

-- 
Michael Fuhr



view thread (3+ messages)  latest in thread

Message-ID: <20050820174753.GA68467@winnie.fuhr.org>
Permalink:  ../20050820174753.GA68467@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050820174753.GA68467@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, postgres@productivitymedia.com, pgsql-php@postgresql.org, pgsql-sql@postgresql.org
  Subject: Re: Data insert
  In-Reply-To: <20050820174753.GA68467@winnie.fuhr.org>

* 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