Auto-uppercase inserted column

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Subject: Auto-uppercase inserted column
Date: 2000-05-19 17:17:32
Message-ID: 200005191717.NAA07779@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to automatically uppercase a column upon insert or
update?

I don't think rules can do that because of the problem of recursion.
The only way I think it can be done is using triggers. Is that correct?

--
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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ross J. Reedstrom 2000-05-19 17:19:22 Re: simple C function
Previous Message Bruce Momjian 2000-05-19 17:14:30 Re: Performance (was: The New Slashdot Setup (includes MySql server))