Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YV74E-0003Zh-13 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2015 23:26:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YV74D-00024f-FT for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2015 23:26:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YV74B-00021S-Bi for pgsql-hackers@postgresql.org; Mon, 09 Mar 2015 23:26:31 +0000 Received: from smtp2.scorpionshops.com ([82.118.24.225] helo=kilimanjaro.scorpionshops.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YV747-0001nt-ID for pgsql-hackers@postgresql.org; Mon, 09 Mar 2015 23:26:30 +0000 Received: from [192.168.1.173] (92-32-205-89.tn.glocalnet.net [92.32.205.89]) by kilimanjaro.scorpionshops.com (Postfix) with ESMTPSA id 8CD977BC0DD; Tue, 10 Mar 2015 00:26:26 +0100 (CET) Message-ID: <54FE2C23.1080604@proxel.se> Date: Tue, 10 Mar 2015 00:26:27 +0100 From: Andreas Karlsson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-Version: 1.0 To: Julien Tachoires , Alex Shulgin CC: Alvaro Herrera , Jaime Casanova , Robert Haas , Pg Hackers Subject: Re: patch : Allow toast tables to be moved to a different tablespace References: <4E8F1666.2060409@gmail.com> <1323956011-sup-9589@alvh.no-ip.org> <87r3wn5lhq.fsf@commandprompt.com> <54A2127D.5020907@proxel.se> <54F5CFDE.20301@gmail.com> In-Reply-To: <54F5CFDE.20301@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 03/03/2015 04:14 PM, Julien Tachoires wrote: > On 30/12/2014 03:48, Andreas Karlsson wrote: >> - A test fails in create_view.out. I looked some into it and did not see >> how this could happen. >> >>[...] > > I can't reproduce this issue. Neither can I anymore. >> - pg_dump is broken >> >> pg_dump: [archiver (db)] query failed: ERROR: syntax error at or >> near "(" >> LINE 1: ...nest(tc.reloptions) x), ', ') AS toast_reloptions >> (SELECT sp... > > Fixed. I still get a failing pg_dump test though when running make check-world. And it does not work when run manually either. + pg_dumpall -f /home/andreas/dev/postgresql/contrib/pg_upgrade/tmp_check/dump1.sql pg_dump: column number -1 is out of range 0..28 cannot duplicate null pointer (internal error) pg_dumpall: pg_dump failed on database "postgres", exiting + pg_dumpall1_status=1 + [ /home/andreas/dev/postgresql != /home/andreas/dev/postgresql ] + /home/andreas/dev/postgresql/contrib/pg_upgrade/tmp_check/install//home/andreas/dev/postgresql-inst/bin/pg_ctl -m fast stop waiting for server to shut down.... done server stopped + [ -n ] + [ -n ] + [ -n 1 ] + echo pg_dumpall of pre-upgrade database cluster failed pg_dumpall of pre-upgrade database cluster failed + exit 1 + rm -rf /tmp/pg_upgrade_check-5A3wsI >> - I do not like how \d handles the toast tablespace. Having TOAST in >> pg_default and the table in another space looks the same as if there was >> no TOAST table at all. I think we should always print both tablespaces >> if either of them are not pg_default. > > If we do it that way, we should always show the tablespace even if it's > pg_default in any case to be consistent. I'm pretty sure that we don't > want that. I think we will have to agree to disagree here. I think it should be obvious when the toast table is in the default tablespace for tables outside it. >> - Would it be interesting to add syntax for moving the toast index to a >> separate tablespace? > > -1, we just want to be able to move TOAST heap, which is supposed to > contain a lot of data and we want to move on a different storage device > / filesystem. I think we should allow moving the indexes for consistency. With this patch we can move everything except for TOAST indexes. >> - There is no warning if you set the toast table space of a table >> lacking toast. I think there should be one. > > A notice is raised now in that case. Excellent, also add a test case for this. >> - Missing periods on the ALTER TABLE manual page after "See also CREATE >> TABLESPACE" (in two places). >> >> - Missing period last in the new paragraph added to the storage manual page. > > I don't understand those 2 last points ? I mean that "TOAST table can be moved to a different tablespace with ALTER TABLE SET TOAST TABLESPACE" should be changed to "TOAST table can be moved to a different tablespace with ALTER TABLE SET TOAST TABLESPACE." since a sentece should always end in ".". = New comments - The patch does not apply cleanly anymore, I had to solve to minor conflicts. - Rewrap the documentation for SET TABLESPACE. - You have added a tab in alter_table.sgml. - Merge "case AT_SetTableTableSpace:" and "case AT_SetToastTableSpace:" where they both do the same thing, i.e. nothing. - Should it not be foo_mv in the query from the test suite below? SELECT spcname FROM pg_class c JOIN pg_class d ON (c.reltoastrelid=d.oid) JOIN pg_tablespace ON (d.reltablespace = pg_tablespace.oid) WHERE c.relname = 'foo2'; -- Andreas Karlsson -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers