Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C3E802B2867 for ; Mon, 25 Jun 2012 11:08:47 -0300 (ADT) Received: from mail-lb0-f174.google.com ([209.85.217.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sj9y9-0002Bn-Li for pgsql-bugs@postgresql.org; Mon, 25 Jun 2012 14:08:47 +0000 Received: by lbbgm6 with SMTP id gm6so6551301lbb.19 for ; Mon, 25 Jun 2012 07:08:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=zttr1a/yEciaC4qVFCgLmNdvrFvo4zVazXynbrOt6Eg=; b=Fgg8NlzVI75Zoc+N/HW00bi6FqR7gYLhxPuBwGbt1PWSG1IMkPw+nw2jAZMK+SE+DT RyLF7vBobnpav4CV9CfOKPqdgW1lqIY3W6k2S8uaX1PcDNkvnUIkJ89vwRe7IHZTmutS ORgQSq9eQd8N97IdEo0n7967j1Zuu1fLqCYcSWQ/Ou4XAK9STtZtgJZMXPrdTk6mmA5d QevqrcznkOlSedc6T9WA4AMEfiEMXHQ83sEarSwwBy5GB/cyKIG+A/6j8cq/vztfiIE4 etpcuiIjYO45gYw67bp89StRXa6L9/M5QwYpmd0GH8VqnTTIhcefOGFCwNsibJB5YKP6 YEpg== MIME-Version: 1.0 Received: by 10.112.98.225 with SMTP id el1mr5974890lbb.30.1340633311695; Mon, 25 Jun 2012 07:08:31 -0700 (PDT) Received: by 10.152.21.234 with HTTP; Mon, 25 Jun 2012 07:08:31 -0700 (PDT) In-Reply-To: <20031.1340631986@sss.pgh.pa.us> References: <1571492617.20120625082624@gf.microolap.com> <20031.1340631986@sss.pgh.pa.us> Date: Mon, 25 Jun 2012 16:08:31 +0200 Message-ID: Subject: Re: pg_tablespace.spclocation column removed in 9.2 From: Magnus Hagander To: Tom Lane Cc: Pavel Golub , Pavel Golub , pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQn6ceFfNtTvXF/S7htyNugDtOBZlrz+oV+jrL8cY06ovZwVwVBjeyNm12RnfXRjBdMiCIv1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/204 X-Sequence-Number: 33431 On Mon, Jun 25, 2012 at 3:46 PM, Tom Lane wrote: > Pavel Golub 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. =A0The main sticking point is the OID column; see recent problem= s > with pg_roles' OID column for an example. =A0On 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... --=20 =A0Magnus Hagander =A0Me: http://www.hagander.net/ =A0Work: http://www.redpill-linpro.com/