pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Carol Walter <walterc@indiana.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Hex representation
Date: Wed, 24 Sep 2008 13:43:51 -0600
Message-ID: <dcc563d10809241243t20c14dbcl65089e12d54de44@mail.gmail.com> (raw)
In-Reply-To: <337D9AE2-2BEF-48E3-8DF4-E7F0CA560A1B@indiana.edu>
References: <337D9AE2-2BEF-48E3-8DF4-E7F0CA560A1B@indiana.edu>

I used this very simple little php script to make this

filename: mk55:
#!/usr/bin/php -q
<?php
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@indiana.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

Attachments:

  mk55 (application/octet-stream, 75B) download

view thread (10+ messages)  latest in thread

Message-ID: <dcc563d10809241243t20c14dbcl65089e12d54de44@mail.gmail.com>
Permalink:  ../dcc563d10809241243t20c14dbcl65089e12d54de44@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10809241243t20c14dbcl65089e12d54de44@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, walterc@indiana.edu
  Subject: Re: Hex representation
  In-Reply-To: <dcc563d10809241243t20c14dbcl65089e12d54de44@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox