Skip site navigation (1) Skip section navigation (2)

Re: Error codes revisited

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: greg(at)turnstep(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error codes revisited
Date: 2003-03-05 04:04:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
greg(at)turnstep(dot)com writes:
> What about a variable that allowed the codes to be switched on so a 
> number is returned instead of a string? This would be off by default 
> so as not to break existing applications. Similarly, we can return 
> other information (FILE, LINE, etc.) with different variables. This 
> should all be doable without a protocol change, as long as everything 
> is returned as a string in a standard format.

The *last* thing we need is a half-baked stopgap solution that we'll
have to be backwards-compatible with forevermore.  Fix it right or
don't do it at all, is MHO.

There is still barely enough time to do the long-threatened protocol
revision for 7.4, if we suck it up and get started on that now.  I've
been avoiding the issue myself, because it seems generally boring and
thankless work, but maybe it's time to face up to it?

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Rod TaylorDate: 2003-03-05 04:22:07
Previous:From: Tatsuo IshiiDate: 2003-03-05 02:23:28
Subject: Win32 Powerfail testing

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group