Re: PSQL commands not backwards-compatible

Lists: pgsql-bugspgsql-patches
From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: PSQL commands not backwards-compatible
Date: 2005-08-30 19:09:03
Message-ID: 200508301209.04026.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Folks,

Discovered some problems using 8.1 psql to connect to an 8.0 server:

test_stats=# \l
ERROR: relation "pg_catalog.pg_roles" does not exist
test_stats=# \dt
ERROR: relation "pg_catalog.pg_roles" does not exist
test_stats=# \dv
ERROR: relation "pg_catalog.pg_roles" does not exist

This is from CVS, the day before the beta release. Ignore me if it's
already been fixed.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 20:24:31
Message-ID: 24438.1125433471@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

This isn't a bug, it's a feature request. We've never had backwards
compatibility of psql backslash commands.

There was some talk just a day or two ago about starting to support
that beginning in 8.2; it's not happening for 8.1 though.

regards, tom lane


From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 20:29:33
Message-ID: 20050830202933.GE21582@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

On Tue, Aug 30, 2005 at 12:09:03PM -0700, Josh Berkus wrote:

> Discovered some problems using 8.1 psql to connect to an 8.0 server:
>
> test_stats=# \l
> ERROR: relation "pg_catalog.pg_roles" does not exist
> test_stats=# \dt
> ERROR: relation "pg_catalog.pg_roles" does not exist
> test_stats=# \dv
> ERROR: relation "pg_catalog.pg_roles" does not exist
>
> This is from CVS, the day before the beta release. Ignore me if it's
> already been fixed.

It's not fixed, but it's also labeled "won't fix," at least for now.

--
Alvaro Herrera <alvherre[]alvh.no-ip.org> Architect, www.EnterpriseDB.com
"El sentido de las cosas no viene de las cosas, sino de
las inteligencias que las aplican a sus problemas diarios
en busca del progreso." (Ernesto Hernández-Novich)


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org, josh(at)agliodbs(dot)com
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 22:49:04
Message-ID: 200508310049.05521.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Tom Lane wrote:
> This isn't a bug, it's a feature request. We've never had backwards
> compatibility of psql backslash commands.

In the past, most of these usually worked. As it appears now, most of
them won't work at all, so we should really put a bigger warning sign
somewhere, because in spite of this not being a bug, people will
probably consider it so and keep bothering us about it.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org, josh(at)agliodbs(dot)com
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 22:56:37
Message-ID: 25480.1125442597@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane wrote:
>> This isn't a bug, it's a feature request. We've never had backwards
>> compatibility of psql backslash commands.

> In the past, most of these usually worked.

They've been broken on a fairly regular basis in past releases.
Certainly 7.3 broke every single one because of the addition of
schema syntax ...

regards, tom lane


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 23:33:55
Message-ID: 200508301633.55836.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Tom,

> They've been broken on a fairly regular basis in past releases.
> Certainly 7.3 broke every single one because of the addition of
> schema syntax ...

Yeah, and we warned people about it, as I recall. Also, we had about 25x
less users then. I think we should put something in the release notes:

WARNING: 8.1's "psql" is not completely backwards-compatible with previous
versions of PostgreSQL.

--Josh

--
__Aglio Database Solutions_______________
Josh Berkus Consultant
josh(at)agliodbs(dot)com www.agliodbs.com
Ph: 415-752-2500 Fax: 415-752-2387
2166 Hayes Suite 200 San Francisco, CA


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 23:35:40
Message-ID: 200508302335.j7UNZeZ25613@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Josh Berkus wrote:
> Tom,
>
> > They've been broken on a fairly regular basis in past releases.
> > Certainly 7.3 broke every single one because of the addition of
> > schema syntax ...
>
> Yeah, and we warned people about it, as I recall. Also, we had about 25x
> less users then. I think we should put something in the release notes:
>
> WARNING: 8.1's "psql" is not completely backwards-compatible with previous
> versions of PostgreSQL.
>

I am working on a patch to warn on psql startup if the backslash
commands might not work.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-30 23:57:03
Message-ID: 37ff65fd58f648f1bb7ff9abc42a6a6a@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Lane wrote:
>>> This isn't a bug, it's a feature request. We've never had backwards
>>> compatibility of psql backslash commands.

>> In the past, most of these usually worked.

> They've been broken on a fairly regular basis in past releases.
> Certainly 7.3 broke every single one because of the addition of
> schema syntax ...

I think that example is the exception, and not the rule. All
other versions /except/ 7.3 worked for the most part with older
versions. I think this is a worthy goal. We don't have to try
and go back to 7.2 or anything, but I think most users would
presume that psql would at least work on at least the previous
version.

If it's the beta timing, I can understand that, but there wasn't all
this fuss when I made psql backwards-compatible last time for
tablespaces. Also, I would think the no new feature rule could
be bent a little here, considering that psql is a relatively
small standalone app, and, as pointed out, we are definitely going
to see people complain about this on the list. A little bit of
effort now will make the project look much better in the long run.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200508301952
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFDFPHQvJuQZxSWSsgRAgtaAKDbRUWHlrqbtIipJiJjP2TaX9OesQCg2IBe
cUDudmot1bIZpWqhtVH/7OA=
=E6aE
-----END PGP SIGNATURE-----


From: David Fetter <david(at)fetter(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: josh(at)agliodbs(dot)com, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-31 00:28:24
Message-ID: 20050831002823.GC5038@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

On Tue, Aug 30, 2005 at 07:35:40PM -0400, Bruce Momjian wrote:
> Josh Berkus wrote:
> > Tom,
> >
> > > They've been broken on a fairly regular basis in past releases.
> > > Certainly 7.3 broke every single one because of the addition of
> > > schema syntax ...
> >
> > Yeah, and we warned people about it, as I recall. Also, we had
> > about 25x less users then. I think we should put something in
> > the release notes:
> >
> > WARNING: 8.1's "psql" is not completely backwards-compatible with
> > previous versions of PostgreSQL.
> >
>
> I am working on a patch to warn on psql startup if the backslash
> commands might not work.

In case of relenting on the feature freeze vs. bug thing, I am
preparing a patch that makes psql's \d commands backward-compatible to
8.0. I should have it out this evening or possible tomorrow for
review.

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 02:20:07
Message-ID: 200508310220.j7V2K7s28670@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Josh Berkus wrote:
> Tom,
>
> > They've been broken on a fairly regular basis in past releases.
> > Certainly 7.3 broke every single one because of the addition of
> > schema syntax ...
>
> Yeah, and we warned people about it, as I recall. Also, we had about 25x
> less users then. I think we should put something in the release notes:
>
> WARNING: 8.1's "psql" is not completely backwards-compatible with previous
> versions of PostgreSQL.

Here is a patch that will print out (in interactive mode only) a warning
message if a newer client connects to an older major numbered server.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 1.1 KB

From: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: josh(at)agliodbs(dot)com, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 02:36:51
Message-ID: 20050830233629.L1044@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches


Could this be back patched to the older versions as well?

On Tue, 30 Aug 2005, Bruce Momjian wrote:

> Josh Berkus wrote:
>> Tom,
>>
>>> They've been broken on a fairly regular basis in past releases.
>>> Certainly 7.3 broke every single one because of the addition of
>>> schema syntax ...
>>
>> Yeah, and we warned people about it, as I recall. Also, we had about 25x
>> less users then. I think we should put something in the release notes:
>>
>> WARNING: 8.1's "psql" is not completely backwards-compatible with previous
>> versions of PostgreSQL.
>
> Here is a patch that will print out (in interactive mode only) a warning
> message if a newer client connects to an older major numbered server.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>

----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: josh(at)agliodbs(dot)com, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 02:40:31
Message-ID: 200508310240.j7V2eV301793@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Marc G. Fournier wrote:
>
> Could this be back patched to the older versions as well?

Sure.

---------------------------------------------------------------------------

>
> On Tue, 30 Aug 2005, Bruce Momjian wrote:
>
> > Josh Berkus wrote:
> >> Tom,
> >>
> >>> They've been broken on a fairly regular basis in past releases.
> >>> Certainly 7.3 broke every single one because of the addition of
> >>> schema syntax ...
> >>
> >> Yeah, and we warned people about it, as I recall. Also, we had about 25x
> >> less users then. I think we should put something in the release notes:
> >>
> >> WARNING: 8.1's "psql" is not completely backwards-compatible with previous
> >> versions of PostgreSQL.
> >
> > Here is a patch that will print out (in interactive mode only) a warning
> > message if a newer client connects to an older major numbered server.
> >
> > --
> > Bruce Momjian | http://candle.pha.pa.us
> > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> > + If your life is a hard drive, | 13 Roberts Road
> > + Christ can be your backup. | Newtown Square, Pennsylvania 19073
> >
>
> ----
> Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
> Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-31 03:03:40
Message-ID: 26959.1125457420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> I think we should put something in the release notes:

> WARNING: 8.1's "psql" is not completely backwards-compatible with previous
> versions of PostgreSQL.

Can you point to any single one of the past five major releases in which
psql's backslash commands *WERE* completely backwards-compatible with
previous versions of PostgreSQL? This is not breaking news.

regards, tom lane


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: josh(at)agliodbs(dot)com, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 03:10:29
Message-ID: 26995.1125457829@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Here is a patch that will print out (in interactive mode only) a warning
> message if a newer client connects to an older major numbered server.

Why only older? It's even less likely to work if the server is newer.

(I don't agree with the premise to begin with...)

regards, tom lane


From: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, josh(at)agliodbs(dot)com, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 03:35:36
Message-ID: 20050831003339.N1044@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

On Tue, 30 Aug 2005, Tom Lane wrote:

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> Here is a patch that will print out (in interactive mode only) a warning
>> message if a newer client connects to an older major numbered server.
>
> Why only older? It's even less likely to work if the server is newer.
>
> (I don't agree with the premise to begin with...)

An example of where this sort of 'obvious warning' is in an environment
like ours, where we have several different version of PostgreSQL running,
and *try* to make sure each version of psql is available to our clients,
but a client inadvertantly runs the wrong version against their database
... its only psql that has the "helper commands", like \d, so the only
thing that *really* makes a different between versions ...

----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ: 7615664


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: josh(at)agliodbs(dot)com, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 03:46:29
Message-ID: 200508310346.j7V3kTp11101@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Here is a patch that will print out (in interactive mode only) a warning
> > message if a newer client connects to an older major numbered server.
>
> Why only older? It's even less likely to work if the server is newer.
>
> (I don't agree with the premise to begin with...)

OK, this new patch prints a warning on any major version mismatch, newer
or older.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 1.1 KB

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-31 17:00:11
Message-ID: 200508311000.11549.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Tom,

> Can you point to any single one of the past five major releases in which
> psql's backslash commands *WERE* completely backwards-compatible with
> previous versions of PostgreSQL? This is not breaking news.

Because this is the first time I can remember where *none* of the \ commands
work with older servers. And because the error we give is pretty ungraceful.

Hmmm ... how difficult would it be to give a useful error message instead of a
SQL error? Something like:

"I'm sorry, that PSQL command did not work. Most likely, you are connecting
to a different version of PostgreSQL."

--
Josh Berkus
Aglio Database Solutions
San Francisco


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-31 18:05:13
Message-ID: 3278.1125511513@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> Hmmm ... how difficult would it be to give a useful error message instead of a
> SQL error? Something like:

> "I'm sorry, that PSQL command did not work. Most likely, you are connecting
> to a different version of PostgreSQL."

Well, "useful" is in the eye of the beholder ... in particular, if you are
trying to debug a problem with the \d commands, you would want to see
the actual backend message. OTOH you would probably also want to see
the query actually issued. So maybe we could make this conditional on
the -E mode?

if -E: print the actual backend error message, as now

else: print "Query failed, probably because backend is a different Postgres release"

Also, we can *know* rather than guess whether the backend is a different
major version, so maybe do the "user-friendly" printout only if (a) not -E
mode and (b) there is a version discrepancy. If there's not a version
discrepancy then the failure is unexpected and we shouldn't be hiding
information about it.

I like this better than Bruce's recent proposal to print a warning at
psql startup, because it emits the info when you actually need it.
How many people pay attention to psql's startup banner at all?

regards, tom lane


From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-31 19:09:38
Message-ID: 20050831190938.GC98175@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

On Wed, Aug 31, 2005 at 02:05:13PM -0400, Tom Lane wrote:
> I like this better than Bruce's recent proposal to print a warning at
> psql startup, because it emits the info when you actually need it.
> How many people pay attention to psql's startup banner at all?

Aren't there other compatability issues as well? The warning on \connect
seems like a good idea to me. Of course nothing says we can't do both...
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com 512-569-9461


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: PSQL commands not backwards-compatible
Date: 2005-08-31 19:24:35
Message-ID: 3989.1125516275@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

"Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
> On Wed, Aug 31, 2005 at 02:05:13PM -0400, Tom Lane wrote:
>> I like this better than Bruce's recent proposal to print a warning at
>> psql startup, because it emits the info when you actually need it.
>> How many people pay attention to psql's startup banner at all?

> Aren't there other compatability issues as well?

Not unless you can point to one. Traditionally psql works fine with
other releases for everything except the \d commands, and AFAIK the
same is true this time around.

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, josh(at)agliodbs(dot)com
Subject: Re: [BUGS] PSQL commands not backwards-compatible
Date: 2005-08-31 21:33:23
Message-ID: 200508312133.j7VLXNB24702@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > Here is a patch that will print out (in interactive mode only) a warning
> > > message if a newer client connects to an older major numbered server.
> >
> > Why only older? It's even less likely to work if the server is newer.
> >
> > (I don't agree with the premise to begin with...)
>
> OK, this new patch prints a warning on any major version mismatch, newer
> or older.

Here is an updated patch that shows the major version numbers of the
client and server when there is a mismatch.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 1.2 KB