Received: from jupiter.hub.org (jupiter.hub.org [64.49.215.5]) by postgresql.org (Postfix) with ESMTP id BE0CC47590B for ; Thu, 28 Feb 2002 19:32:50 -0500 (EST) Received: (from news@localhost) by jupiter.hub.org (8.11.6/8.11.6) id g210N8G12393 for pgsql-admin@postgresql.org; Thu, 28 Feb 2002 18:23:08 -0600 (CST) (envelope-from news) From: reina@nsi.edu (Tony Reina) X-Newsgroups: comp.databases.postgresql.admin Subject: Alias for field name Date: 28 Feb 2002 16:22:56 -0800 Organization: http://groups.google.com/ Lines: 22 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Archive-Number: 200202/381 X-Sequence-Number: 3534 I know this is probably a no-no, but I was just curious. I have two databases that are almost identical. Some of the minor differences include different field names. For instance, in one db a field called 'cell_name' is the same (more or less) as a field called 'file_name' in another db (actually cell_name is a subset of file_name). Would it be possible for PostgreSQL to know that if I ask for 'file_name' in the first db that I am really talking about 'cell_name'? In other words, is there an alias declaration? e.g. CREATE TABLE testtable ( cell_name int4 AKA file_name ); Note that I don't think this would be true referential integrity because 'file_name' is nowhere in the first database (it's between them). Thanks. -Tony