Renaming tables and columns to lowercase

From: Bruno Lavoie <bruno(dot)lavoie(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Renaming tables and columns to lowercase
Date: 2009-01-10 22:25:36
Message-ID: 49692060.1060400@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

In a migration process, I've imported a bunch of tables from an old
Access database to PostgreSQL. The name of tables and fields on the
source are mixed case. When copying tables to pg via ODBC, identifiers
are copied in mixed case into pg destination db. Data is copied without
any problem.

Due to pg folding policies, I always need to quote my identifiers when
querying data on these tables. It's something overkill in typing and time.

--> Can I rename all tables and columns to lowercase, in a specified schema?

Thanks
Bruno Lavoie

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-01-11 00:00:10 Re: Renaming tables and columns to lowercase
Previous Message Thom Brown 2009-01-10 19:22:55 Re: Rename a constraint