pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michelle Konzack <linux4michelle@tamay-dogan.net>
To: pgsql-admin@postgresql.org
Subject: Re: Hex representation
Date: Sat, 27 Sep 2008 17:24:15 +0200
Message-ID: <20080927152415.GP17284@tamay-dogan.net> (raw)
In-Reply-To: <337D9AE2-2BEF-48E3-8DF4-E7F0CA560A1B@indiana.edu>
References: <337D9AE2-2BEF-48E3-8DF4-E7F0CA560A1B@indiana.edu>

Am 2008-09-24 15:20:03, schrieb Carol Walter:
> 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.

This is working:

#!/bin/sh

for MAJ in 0 1 2 3 ; do
  for MIN in 0 1 2 3 4 5 6 7 8 9 A B C D E F ; do
    for HEX in $(seq 1 262144) ; do
      echo -n \x55 >>00${MAY}${MIN}
    done
  done
done

which should create your missing pg_clog files

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachments:

  signature.pgp (application/pgp-signature, 188B) download

view thread (10+ messages)  latest in thread

Message-ID: <20080927152415.GP17284@tamay-dogan.net>
Permalink:  ../20080927152415.GP17284@tamay-dogan.net/
Also on:    postgresql.org/message-id/20080927152415.GP17284@tamay-dogan.net

 · 

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: linux4michelle@tamay-dogan.net
  Subject: Re: Hex representation
  In-Reply-To: <20080927152415.GP17284@tamay-dogan.net>

* 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