Re: buildfarm logging versus embedded nulls

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: buildfarm logging versus embedded nulls
Date: 2010-03-12 15:45:52
Message-ID: 4B9A61B0.1020200@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>> Now, the log_text field in our build_status_log table is text, so it's
>> on insertion to the database that it gets truncated. I'm thinking that I
>> should just escape nulls with a regex ( 's/\x00/\\0/g' or similar)
>> before inserting the data.
>>
>
> Works for me.
>
>
>

Done.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-03-12 15:51:59 Re: log : bad file dscriptor????
Previous Message Alvaro Herrera 2010-03-12 15:40:01 Re: buildfarm logging versus embedded nulls