Re: Better error message for a small problem with WITH RECURSIVE

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Better error message for a small problem with WITH RECURSIVE
Date: 2008-10-08 06:40:50
Message-ID: 48EC55F2.60807@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> I would think this is overkill, except I've made the same darn mistake
> one time too many. It seems clear to me that a lot of other people will
> make it too, and if the error message isn't more helpful a lot of time
> will get wasted. Barring loud objections, I'm gonna go change it.

Yes, please. At least DB2 allows recursive queries without the
"RECURSIVE" keyword, just "WITH" is enough. Without a hint, anyone
migrating from such a system will spend hours looking at the query,
seeing nothing wrong.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-10-08 07:26:02 Re: Reducing some DDL Locks to ShareLock
Previous Message Greg Smith 2008-10-08 06:11:03 Re: Shouldn't pg_settings.enumvals be array of text?