From: David Johnston <polobo@yahoo.com>
To: 'Alex' <alex.thegreat@ambix.net>
To: pgsql-sql@postgresql.org
Subject: Re: Error: Template Id should be teh identifier of a template - help
Date: Fri, 17 Aug 2012 12:18:16 -0400
Message-ID: <008201cd7c93$e8c0d240$ba4276c0$@yahoo.com> (raw)
In-Reply-To: <EBCBA6B9-F98A-48CE-B9EB-DAE6EEA756FD@ambix.net>
References: <EBCBA6B9-F98A-48CE-B9EB-DAE6EEA756FD@ambix.net>
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of Alex
Sent: Friday, August 17, 2012 11:58 AM
To: pgsql-sql@postgresql.org
Subject: [SQL] Error: Template Id should be teh identifier of a template -
help
Hi, All!
When I execute this:
UPDATE HTMLPAGE SET PAGE_URL = REPLACE(PAGE_URL, '.dot', '.html') WHERE
PAGE_URL LIKE '%.dot';
I get the following error from psql. Could you tell me what is wrong or how
to fix it?
Thanks,
Alex
Failed to execute SQL : SQL UPDATE HTMLPAGE SET PAGE_URL = REPLACE(PAGE_URL,
'.dot', '.html') WHERE PAGE_URL LIKE '%.dot'; failed : ERROR: Template Id
should be the identifier of a template
============================================================================
==
This seems to be an application error and not something PostgreSQL is
issuing on its own. The htmlpage table seems to have an update trigger on
it that checks for the validity of a template id. Since it is a trigger and
not a constraint it is possible/likely the trigger was added without
validating existing data. Your update must hit one or more records that do
not meet the conditions that the triggers sets forth so the trigger performs
a "RAISE ERROR 'Template Id should be the identifier of a template'". You
will need to speak with someone responsible for maintaining the database.
David J.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: polobo@yahoo.com, alex.thegreat@ambix.net
Subject: Re: Error: Template Id should be teh identifier of a template - help
In-Reply-To: <008201cd7c93$e8c0d240$ba4276c0$@yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox