Re: I need to ecrypt one column to an output file

From: David Fetter <david(at)fetter(dot)org>
To: Ralph Smith <smithrn(at)washington(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: I need to ecrypt one column to an output file
Date: 2008-04-19 11:18:08
Message-ID: 20080419111808.GA11892@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 15, 2008 at 01:11:10PM -0700, Ralph Smith wrote:
> I need to do a simple query and output to a file.
> No problem.
>
> But how do I encrypt one column's output?

COPY (SELECT a, b, c, some_func(d) AS d_s3krit FROM your_tab) TO...;

Does that help?

Cheers,
David.
> There are lots of developer related links here, and info to "use the
> /contrib pgcrypto", but I'm not a PG developer and I failed to find any
> info on HOW TO USE that library function...
>
> Thanks all,
>
> Ralph Smith
> smithrn(at)washington(dot)edu
> =====================
>
>
>

--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma 2008-04-19 13:21:06 Re: very slow updates in 8.3?
Previous Message Martijn van Oosterhout 2008-04-19 09:23:16 Re: Problem. createdb: could not connect to database postgres: could not connect to server: No such file or directory