X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9B1FC30D1C2 for ; Thu, 12 Jun 2003 12:18:46 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 56129-08 for ; Thu, 12 Jun 2003 09:18:36 -0300 (ADT) Received: from web80507.mail.yahoo.com (web80507.mail.yahoo.com [66.218.79.77]) by svr1.postgresql.org (Postfix) with SMTP id 86B3030D1BE for ; Thu, 12 Jun 2003 09:18:35 -0300 (ADT) Message-ID: <20030612121835.66802.qmail@web80507.mail.yahoo.com> Received: from [202.78.97.14] by web80507.mail.yahoo.com via HTTP; Thu, 12 Jun 2003 05:18:35 PDT Date: Thu, 12 Jun 2003 05:18:35 -0700 (PDT) From: Ludwig Lim Subject: Some Questions To: PostgreSQL Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200306/106 X-Sequence-Number: 13864 Hi: I would like to ask the following questions: a) Are foreign key constraint triggers guaranteed to execute first before any ordinary "BEFORE INSERT/UPDATE/DELETE" trigger is executed? (This is assuming that the foreign keys are declared as "NOT DEFERRABLE") b) Is "varchar" (without upper limit) the same as "text"? I do notice that when I create a view : create view v_test as (select 'test'::varchar(10) union select 'test1'::varchar(10)); a "\d v_test" on the psql prompt would always say the only only column the view is of type "character varying". Does a union of a varchar(n) column and a another varchar(n) column would automatically cast it to "character varying" (w/o upper limit) even if the upper limit of the 2 varchar columns are the same? thanks in advance, ludwig lim __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com