Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1EI4Zx65949 for ; Wed, 14 Feb 2001 13:04:35 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [207.172.28.154] (HELO agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.3) with ESMTP id 1190544 for pgsql-sql@postgresql.org; Wed, 14 Feb 2001 10:04:33 -0800 Message-ID: <3A8AC8BD.EDCBC71A@agliodbs.com> Date: Wed, 14 Feb 2001 10:04:45 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions X-Mailer: Mozilla 4.73 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: sqllist Subject: Re: Re: Trigger question References: <3A8754BB.382CBDBE@wedwick.com> <3A8A9EF5.8C8929C@wedwick.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/266 X-Sequence-Number: 1457 Dave, Please look at the docs for creating triggers. (http:/www.postgresql.org/docs/). Hopefully, someone on this list with more experience with Update and Insert triggers can give you some help in avoiding the classic problems, such as infinite loops. Let me ask the obvious question: If the InsertTime field is not open to user input, why are you providing users with a data-entry interface for this field at all? Why not hide it, or display it read-only? -Josh Berkus -- ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco