Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 51DB32B2862 for ; Mon, 25 Jun 2012 05:10:44 -0300 (ADT) Received: from mail-bk0-f46.google.com ([209.85.214.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sj4Ne-00042P-Uq for pgsql-hackers@postgresql.org; Mon, 25 Jun 2012 08:10:43 +0000 Received: by bkcji2 with SMTP id ji2so2866751bkc.19 for ; Mon, 25 Jun 2012 01:10:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:reply-to:organization:x-priority:message-id:to:cc :subject:in-reply-to:references:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=YvL5md+yLoIJARxw5DUmL/pVnLuHIlRekTTn6V6xARw=; b=LrHPmwtQM7oN0kltI2kz6lt2b6LbJ70FVTAqunB0YtSMPeNa0lb1ClKIru9s5w4o4/ /4ew69FGjuvpGUd43RgHfQxm3u4+mZBOnthMRBBMYubcCmZ3XgY94rP7UW5JHAcSumDI hmRynJxdeXxIdjXzr1cm0RDIub3bajiZL/7pCel0FuEZJ+TEabAJJAogUYfr5DWOdRli hNfTs9Cz6RYVoi3t4ufiMaENIoGGjuzChmxAktPFU1Nk3O3zqfmPVkmDmb/cwo5Zj6ka w4RTux/LtTRCgw5kdCxjPvGzRmC9S2tG8N6vkat90fEn8FlAQ+2tYK3BBRPt0NfhT+/f k7zA== Received: by 10.204.152.75 with SMTP id f11mr3719100bkw.103.1340611829402; Mon, 25 Jun 2012 01:10:29 -0700 (PDT) Received: from [192.168.1.104] (122-78-200-46.pool.ukrtel.net. [46.200.78.122]) by mx.google.com with ESMTPS id e20sm45299873bkv.10.2012.06.25.01.10.27 (version=SSLv3 cipher=OTHER); Mon, 25 Jun 2012 01:10:28 -0700 (PDT) Date: Mon, 25 Jun 2012 11:10:23 +0300 From: Pavel Golub Reply-To: Pavel Golub Organization: Microolap X-Priority: 3 (Normal) Message-ID: <01544617.20120625111023@gf.microolap.com> To: Guillaume Lelarge CC: pgsql-hackers@postgresql.org Subject: Re: pg_tablespace.spclocation column removed in 9.2 In-Reply-To: <1340611362.2107.6.camel@localhost.localdomain> References: <1571492617.20120625082624@gf.microolap.com> <1340611362.2107.6.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQkBTrF/3eYHSwoKmtj7gdhT/MG2K4faru68Wg96pZ/FIbhj6G4rq23hvvfRzIcq++qy9xvp X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201206/1432 X-Sequence-Number: 210272 Hello, Guillaume. You wrote: GL> Hi Pavel, GL> 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? >> GL> I don't see why it causes you so much trouble. Not so much. However. GL> You should already have GL> many locations in your code where you need to check the version to be GL> compatible with the latest major releases. This is holy true. GL> I know pgAdmin does. So I GL> guess that one more is not a big deal. GL> And this change in PostgreSQL helps a lot DBAs who want to move GL> tablespaces (not really common work AFAIK, I agree). I know. I just followed the advice of Josh Berkus and added this as a bug. -- With best wishes, Pavel mailto:pavel@gf.microolap.com