From: Phil Endecott <spam_from_pgsql_lists@chezphil.org>
To: ROS Didier <didier.ros@edf.fr>
To: pgsql-general@lists.postgresql.org
Subject: RE: Why the index is not used ?
Date: Sun, 07 Oct 2018 20:17:51 +0100
Message-ID: <1538939871586@dmwebmail.dmwebmail.chezphil.org> (raw)
Hello Didier,
Your email is didier.ros@edf.fr. Are you working at Electricite de France,
and storing actual customers' credit card details? How many millions of
them?
Note that this mailing list is public; people looking for targets with poor
security from which they can harvest credit card numbers might be
reading it.
And after you are hacked and all your customers' credit card details
are made
public, someone will find this thread.
> it's not the best solution, but we have data encryption needs and good
> performance needs too. I do not know how to do it except the specified
> procedure..
You should probably employ someone who knows what they are doing.
Sorry for being so direct, but really... storing large quantities of credit
card details is the text book example of something that has to be done
correctly.
> if anyone has any proposals to put this in place, I'm interested.
Why do you need to search by credit card number?
If you really really need to do that, then one option is to use an
encryption function that doesn't salt the data. Or you could store part
of the number (last 4 digits?), or an unsalted hash of the number,
unencrypted and indexed, and then you need only to sequentially decrypt
(using the salted encryption) e.g. 1/10000 of the card numbers. But there
are complex security issues and tradeoffs involved here. You probably
need to comply with regulations (e.g. "PCI standards") which will specify
what is allowed and what isn't. And if you didn't already know that,
you shouldn't be doing this.
Good luck, I suppose.
Phil.
P.S. It seems that you were asking about this a year ago, and got the
same answers...
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: spam_from_pgsql_lists@chezphil.org, didier.ros@edf.fr
Subject: Re: Why the index is not used ?
In-Reply-To: <1538939871586@dmwebmail.dmwebmail.chezphil.org>
References: <1538939871586@dmwebmail.dmwebmail.chezphil.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