Skip site navigation (1) Skip section navigation (2)

Re: Hex representation

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Carol Walter" <walterc(at)indiana(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Hex representation
Date: 2008-09-24 19:43:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I used this very simple little php script to make this

filename: mk55:
#!/usr/bin/php -q
for ($i=0;$i<262144;$i++){
    print chr(85);

and ran it:

./mk55 > 55

ls -l 55
-rw-r--r-- 1 smarlowe smarlowe 262144 2008-09-24 13:41 55

i.e. it's 256k.

And it's attached.

On Wed, Sep 24, 2008 at 1:20 PM, Carol Walter <walterc(at)indiana(dot)edu> wrote:
> Hello,
> Does anyone know what the format of hex characters for postgres are?  I'm
> trying to create files that contain a 0x55.  It looks to me like it should
> require a delimiter of some sort between the characters.  I don't know how
> postgres would know that the string was a hex representation and not just a
> character zero, followed by a character x, followed by a character 5,
> followed by a character 5.
> Carol
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:

Attachment: mk55
Description: application/octet-stream (74 bytes)

In response to


pgsql-admin by date

Next:From: Scott MarloweDate: 2008-09-24 20:19:28
Subject: Re: Missing pg_clog files
Previous:From: Milen A. RadevDate: 2008-09-24 19:32:46
Subject: Re: Hex representation

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group