storing binary data

Поиск
Список
Период
Сортировка
От Neil Conway
Тема storing binary data
Дата
Msg-id 20001016225409.A2992@klamath.dyndns.org
обсуждение исходный текст
Ответы Re: storing binary data  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I want to store some binary data in Postgres. The data is an
MD5 checksum of the user's password, in binary. It will be
exactly 16 bytes (since it is a one-way hash).

Can I store this safely in a CHAR column? Can the data be
treated normally (i.e. compare a binary checksum of the
password the user entered with the binary value stored
in the DB, etc).

Are there any issues I'll need to watch out for when
storing/manipulating binary data?

(I was going to RTFM and search the mailing list archives,
but they don't seem to be working.)

TIA,

Neil

--
Neil Conway <neilconway@home.com>
Get my GnuPG key from: http://klamath.dyndns.org/mykey.asc
Encrypted mail welcomed

Secrecy is the beginning of tyranny.
        -- Heinlein

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: mlw
Дата:
Сообщение: Re: C function returning rows, was Boolean text, with phrase ranking, search under Postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: storing binary data