Re: Uppercase to lowercase trigger? - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Uppercase to lowercase trigger?
Date
Msg-id CAFj8pRBVjKkwJTiUFUKRpMarzOo5jDa0uVmcZ06KLOSL8=fpVw@mail.gmail.com
Whole thread Raw
In response to Re: Uppercase to lowercase trigger?  (Chrishelring <christianhelring@gmail.com>)
Responses Re: Uppercase to lowercase trigger?
List pgsql-general
Hello

2012/5/3 Chrishelring <christianhelring@gmail.com>:
> Maybe I should clarify what I mean.
>
> I have a db (postgresql 8.4.1 with a postGIS spatial extension) with about
> 200+ tables in it. Some of them is supposed to be updated using an
> application what requres that some of the columns are in uppercase (a
> leftover from Oracle I suppose) but the main application that uses these
> tables requres that the columns are in lowercase. I had an idea that using a
> trigger I could chance the columns from lowercase to uppercase before
> updating /changing the tables and after the update chance them back to
> lowercase. Is that possible and how do I do that?

no, this is not possible. But you can write simple functions that
verifies names and you can call this function manually when you do
some changes, or you can call this function from cron.

Regards

Pavel Stehule


>
> Christian
>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/Uppercase-to-lowercase-trigger-tp5680384p5682473.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Alexander Reichstadt
Date:
Subject: Re: Memory Management in pqlib, Garbage Collection support
Next
From: Ken Tanzer
Date:
Subject: Re: Uppercase to lowercase trigger?