How to get an md5/sha256 hash of a really large object in psql?

Поиск
Список
Период
Сортировка
От Alex Shan
Тема How to get an md5/sha256 hash of a really large object in psql?
Дата
Msg-id CAAFmqa_MfByym+AyQAjq23_gd-p-=2c57KqXCr6D5BK_o46_Dg@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to get an md5/sha256 hash of a really large object in psql?  (Erik Wienhold <ewie@ewie.name>)
Список pgsql-general
Hello,

In my DB I have a large object over 4GB in size.
I need to get its MD5 or SHA256 from within psql query, i.e. without exporting it to FS first.

“SELECT md5(lo_get(loid));” doesnt work — “large object is too large”.

Is there any other way to do it?


Regards,
Al

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: backup_manifest rename to backup_manifest.old after successful postgres start up
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: How to improve the performance of my SQL query?