Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 329EDB5DC68 for ; Fri, 2 Sep 2011 01:34:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 10476-07 for ; Fri, 2 Sep 2011 04:34:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 8E0DAB5DC5B for ; Fri, 2 Sep 2011 01:34:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p824Y41x004445; Fri, 2 Sep 2011 00:34:04 -0400 (EDT) To: Geoff Tolley cc: pgsql-admin@postgresql.org Subject: Re: Alter column varchar(n) via updating pg_attribute In-reply-to: <4E600A2C.9030307@yougov.com> References: <4E600A2C.9030307@yougov.com> Comments: In-reply-to Geoff Tolley message dated "Thu, 01 Sep 2011 17:41:48 -0500" Date: Fri, 02 Sep 2011 00:34:04 -0400 Message-ID: <4444.1314938044@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/9 X-Sequence-Number: 38246 Geoff Tolley writes: > The last time this was asked about > (http://archives.postgresql.org/pgsql-admin/2010-02/msg00189.php), 9.0 > was still alpha. > Is there any reason to suspect that direct pg_attribute manipulation to > expand a varchar(n) column might not play nice with streaming > replication/hot standby? (Naturally I'm also in the process of testing). I can't see why it wouldn't. The WAL/replication mechanism works at such a low level that it has no idea whether an update to pg_attribute originated in an official DDL command or a manual UPDATE of the catalog. I think you should be more worried about fat-fingering the update than whether it will be replicated correctly. But, of course, testing is always a good idea ;-) regards, tom lane