Re: Single Byte values

From: Joel Rees <joel(at)alpsgiken(dot)gr(dot)jp>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Single Byte values
Date: 2003-04-07 01:52:24
Message-ID: 20030407104846.DCBE.JOEL@alpsgiken.gr.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> It's often better use int4(8) than char(1) as (primary) keys.

A thought from a rank newb, how about using the a misnamed ascii(), and
storing the integer code for the characters you want to use as short
keys in integer fields?

--
Joel Rees <joel(at)alpsgiken(dot)gr(dot)jp>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lonni Friedman 2003-04-07 03:31:53 Re: unable to dump database, toast errors
Previous Message Bruce Momjian 2003-04-07 01:33:34 Re: PHP as PL