Re: PL/pgSQL question about EXCEPTION clause & corrupt records

Поиск
Список
Период
Сортировка
От Jeremy Schneider
Тема Re: PL/pgSQL question about EXCEPTION clause & corrupt records
Дата
Msg-id 778b4c5c-312f-2e64-b690-5ddc9443966b@ardentperf.com
обсуждение исходный текст
Ответ на Re: PL/pgSQL question about EXCEPTION clause & corrupt records  (Jeremy Schneider <schneider@ardentperf.com>)
Список pgsql-general
On 2/17/20 08:23, Jeremy Schneider wrote:
> FWIW, Bertrand blogged an even faster way to do this about a month ago -
> using pageinspect and processing blocks instead of rows
> 
>
https://bdrouvot.wordpress.com/2020/01/18/retrieve-postgresql-variable-length-storage-information-thanks-to-pageinspect/
> 
> 
>> On Feb 17, 2020, at 03:32, Nick Renders <postgres@arcict.com> wrote:
>>
>> The problem is that I don't know which column is corrupt. But I found
>> a solution: by simply copying the record into another variable, the
>> values are parsed and the TOAST errors are thrown.
>>
>> In case anyone's interested, here's my code, based on an example from
>> http://www.databasesoup.com/2013/10/de-corrupting-toast-tables.html

Apologies - sent that slightly rushed email while I was taking the bus
to the office this morning and linked the wrong blog post :D

Here's the right one, showing a much faster way to identify which tuple
links to a bad toast row:


https://bdrouvot.wordpress.com/2020/01/04/get-toast-chunk_id-from-the-user-table-tuples-or-from-the-toast-index-thanks-to-pageinspect/

-Jeremy

-- 
http://about.me/jeremy_schneider



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

Предыдущее
От: Jimmy Angelakos
Дата:
Сообщение: Re: parsing xml with PG 9.2.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Cases where alter table set type varchar(longer length) still needs table rewrite