Re: [PATCHES] Version checking when loading psql

From: wsheldah(at)lexmark(dot)com
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [PATCHES] Version checking when loading psql
Date: 2001-11-21 15:58:05
Message-ID: 200111211558.KAA10467@interlock2.lexmark.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How hard would it be to do the check only when reporting on a failed command.
Something like "[command] failed. Could it be because you're using psql version
X and connected to Postgresql version Y?" That way you would have a hint when
something failed, but otherwise wouldn't have to worry about it. Unless some
commands didn't work by returning bad results without actually "failing" with an
error message....

Tom Lane <tgl%sss(dot)pgh(dot)pa(dot)us(at)interlock(dot)lexmark(dot)com> on 11/21/2001 10:12:02 AM

To: Peter Eisentraut <peter_e%gmx(dot)net(at)interlock(dot)lexmark(dot)com>
cc: Greg Sabino Mullane <greg%turnstep(dot)com(at)interlock(dot)lexmark(dot)com>,
pgsql-general%postgresql(dot)org(at)interlock(dot)lexmark(dot)com (bcc: Wesley
Sheldahl/Lex/Lexmark)
Subject: Re: [GENERAL] [PATCHES] Version checking when loading psql

[ redirected from patches to general ]

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Greg Sabino Mullane writes:
>> Attached is a little patch that simply verifies that the
>> version of psql you are running is the same as the version
>> of postgresql you are attaching to.

> I'm sure this would annoy people.

I'm of two minds about it. It'd annoy *me*, but I know we have seen
trouble reports from people who were using version-mismatched psql
and didn't understand why some \d commands didn't work. Maybe we
should be catering more to newbies here.

Any other opinions out there?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Browse pgsql-general by date

  From Date Subject
Next Message Vince Vielhaber 2001-11-21 15:58:44 Re: [PATCHES] Version checking when loading psql
Previous Message Tom Lane 2001-11-21 15:56:18 Re: [PATCHES] Version checking when loading psql