Re: BIT/BIT VARYING names (was Re: [HACKERS] Beta for 4:30AST)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: BIT/BIT VARYING names (was Re: [HACKERS] Beta for 4:30AST)
Date: 2000-03-08 01:30:17
Message-ID: 200003080130.UAA06414@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > format_type(name[, int4]) that formats an internal type and any size
> > > modifier for client consumption, like
> > > format_type('varchar', 8) => "CHARACTER VARYING(8)"
> > > format_type('my type') => "\"my type\""
> > > format_type('numeric', {xxx}) => "NUMERIC(9,2)"
>
> Ooh, that *is* a good idea (though the exact name of the function may
> evolve)! Sorry I missed seeing it in Peter's earlier postings.
>
> Funny how we can go for years banging our heads on an issue and have
> something like this (ie a good idea on the subject) pop up out of the
> blue.
>
> Presumably we would include a function taking the conversion the other
> direction too...

Not sure it is really needed. We already to the translation in gram.y.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-03-08 01:31:46 Re: [HACKERS] CREATE VIEW fix
Previous Message Tom Lane 2000-03-08 01:28:02 Re: [HACKERS] library policy question