Re: char() or varchar() for frequently used column - Mailing list pgsql-novice

From Jules Alberts
Subject Re: char() or varchar() for frequently used column
Date
Msg-id 200210180714.g9I7EQE2000305@artemis.cuci.nl
Whole thread Raw
In response to Re: char() or varchar() for frequently used column  (Randy Neumann <Randy_Neumann@centralref.com>)
List pgsql-novice
On 17 Oct 2002 at 14:15, Randy Neumann wrote:
> If your really that worried about this you will just have to have an
> effective date and an expiration date on the codes.  Leave the expiration
> date either null or a VERY VERY large value.

Yes, I have considered this. A simpler (less complete) way would be to
add a boolean is_active to each table. Defaults to true, and if false,
you can't insert the CODE.

While especially the date approach would be correct, i haven't decided
if I will use it, or the boolean approach. It has it's advantages, but
a big disadvantage is that it will make thing a lot more complicated,
errorprone etc. Will it be worth it? I don't know yet.

pgsql-novice by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: information
Next
From: Ludwig Lim
Date:
Subject: psql/postmaster not freeing up resources? (based on "top" command)