pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Golub <pavel@gf.microolap.com>
Cc: Pavel Golub <pavel@microolap.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: pg_tablespace.spclocation column removed in 9.2
Date: Mon, 25 Jun 2012 16:08:31 +0200
Message-ID: <CABUevEyc6fk-O2jHBA6Dt07eRONKyk70FhYcmWQ4fXo+QN3vfQ@mail.gmail.com> (raw)
In-Reply-To: <20031.1340631986@sss.pgh.pa.us>
References: <1571492617.20120625082624@gf.microolap.com>
	<20031.1340631986@sss.pgh.pa.us>

On Mon, Jun 25, 2012 at 3:46 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Pavel Golub <pavel@microolap.com> writes:
>> I'm aware of problems caused by this hard coded column. My proposal is
>> to convert pg_tablespace to system view may be?
>
> It's not that easy to make a 100% backwards compatible view for a system
> catalog.  The main sticking point is the OID column; see recent problems
> with pg_roles' OID column for an example.  On the whole I don't think
> renaming pg_tablespace and inserting a mostly-compatible view would be
> a net advance.
>
> More generally, I don't see that this particular incompatibility in
> the system catalogs is worse than many others that we've perpetrated.

I'd say it's a lot less bad than some others. At least for this one
you can reasonably connect and figure it out. There was the changes
for database config, I think, which made at least pgadmin break even
before it managed to connect properly. (It got the connection in the
libpq sense, but not in the pgadmin sense).

Bottom line is, any admin tool will *always* have to have to know
about the specific versions and have code to deal with being able to
run different queries on different versions anyway. And this one is
trivial to reimplement with a different query, compared to most
others.

Yes, if we had a set of those stable-system-views that people keep
asking for every now and then, this is one of the few changes that
they *would* actually help with. But there would still be changes that
even those couldn't deal with, because they simply can't know the
future...

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



view thread (5+ messages)

Message-ID: <CABUevEyc6fk-O2jHBA6Dt07eRONKyk70FhYcmWQ4fXo+QN3vfQ@mail.gmail.com>
Permalink:  ../CABUevEyc6fk-O2jHBA6Dt07eRONKyk70FhYcmWQ4fXo+QN3vfQ@mail.gmail.com/
Also on:    postgresql.org/message-id/CABUevEyc6fk-O2jHBA6Dt07eRONKyk70FhYcmWQ4fXo+QN3vfQ@mail.gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: magnus@hagander.net, tgl@sss.pgh.pa.us, pavel@gf.microolap.com, pavel@microolap.com, pgsql-hackers@postgresql.org
  Subject: Re: pg_tablespace.spclocation column removed in 9.2
  In-Reply-To: <CABUevEyc6fk-O2jHBA6Dt07eRONKyk70FhYcmWQ4fXo+QN3vfQ@mail.gmail.com>
  References: <1571492617.20120625082624@gf.microolap.com> <20031.1340631986@sss.pgh.pa.us> <CABUevEyc6fk-O2jHBA6Dt07eRONKyk70FhYcmWQ4fXo+QN3vfQ@mail.gmail.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