Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D42752B2862 for ; Mon, 25 Jun 2012 05:03:02 -0300 (ADT) Received: from sd-17937.dedibox.fr ([88.191.100.74]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sj4G8-0003gm-JP for pgsql-hackers@postgresql.org; Mon, 25 Jun 2012 08:03:01 +0000 Received: from [192.168.10.3] (AMontsouris-552-1-69-218.w92-140.abo.wanadoo.fr [92.140.36.218]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 680033B8F5; Mon, 25 Jun 2012 10:05:18 +0200 (CEST) Message-ID: <1340611362.2107.6.camel@localhost.localdomain> Subject: Re: pg_tablespace.spclocation column removed in 9.2 From: Guillaume Lelarge To: Pavel Golub Cc: pgsql-hackers@postgresql.org Date: Mon, 25 Jun 2012 10:02:42 +0200 In-Reply-To: <1571492617.20120625082624@gf.microolap.com> References: <1571492617.20120625082624@gf.microolap.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.3 (3.4.3-1.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/1431 X-Sequence-Number: 210271 Hi Pavel, On Mon, 2012-06-25 at 08:26 +0300, Pavel Golub wrote: > Hello, Pgsql-bugs. > > According to the "Moving tablespaces" thread started by Bruce > http://archives.postgresql.org/pgsql-docs/2011-12/msg00003.php > pg_tablespace.spclocation column is removed in the 9.2beta. However > this breaks backward compatibility for a bunch of products, e.g. > pgAdmin, phpPgAdmin, PgMDD etc. > > I'm not sure this is the best choice. Because each application with > tablespace support will need additional check now to determine what > way to use for obtaining tablespace location: > pg_get_tablespace_location(oid) or tablespace.spclocation > > I'm aware of problems caused by this hard coded column. My proposal is > to convert pg_tablespace to system view may be? > I don't see why it causes you so much trouble. You should already have many locations in your code where you need to check the version to be compatible with the latest major releases. I know pgAdmin does. So I guess that one more is not a big deal. And this change in PostgreSQL helps a lot DBAs who want to move tablespaces (not really common work AFAIK, I agree). -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com