User-Defined Types

From: "David F(dot) Johnson" <dfjohnson(at)cabaret(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: User-Defined Types
Date: 2007-07-05 20:53:36
Message-ID: C2B2D290.23F53%dfjohnson@cabaret.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings.

During the development of a database often there is a need to change a
field's declaration from, say, VARCHAR(32) to, say, VARCHAR(64).

Having to go through and find all pertinent uses of VARCHAR(32) in the table
definitions (where it may be a foreign key) and in functions (where it may
be a parameter) to VARCHAR(64) is tedious and error prone.

Is there a simple way to make a user-defined type that is a specific
declaration of a built-in type (like VARCHAR(##)) without having to
implement the type's support functions?

Thanks,
David

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-07-05 21:34:23 Re: simple query question to use with DBI selectall_hashref
Previous Message Ranieri Mazili 2007-07-05 20:49:29 Re: Working with dates