Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b32ce-0007kY-4H for pgsql-admin@arkaria.postgresql.org; Wed, 18 May 2016 14:38:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b32cd-0002FQ-NS for pgsql-admin@arkaria.postgresql.org; Wed, 18 May 2016 14:38:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b32cc-00028w-Sy for pgsql-admin@postgresql.org; Wed, 18 May 2016 14:38:51 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b32cZ-0005cn-Ta for pgsql-admin@postgresql.org; Wed, 18 May 2016 14:38:49 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b32cW-0001i4-Le for pgsql-admin@postgresql.org; Wed, 18 May 2016 16:38:44 +0200 Received: from 185.40.248.10 ([185.40.248.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2016 16:38:44 +0200 Received: from spam_eater by 185.40.248.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2016 16:38:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Thomas Kellerer Subject: Re: Table symbolic link Date: Wed, 18 May 2016 16:38:38 +0200 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 185.40.248.10 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: -1.2 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Campbell, Lance schrieb am 18.05.2016 um 16:31: > PostgreSQL 9.5.x > > I have 16 web applications using a single database. Some of the > tables in the database are used by many of the applications. I wanted > to rename a particular table. The issue is that I would have to > change every application then stop all the applications and then > redeploy them after renaming the table to the new name. > > The better strategy would be to rename the table to the new name and > add a symbolic table that link to the new table name. Then as I make > changes to each application I can point them to the new name. Maybe > in a year I could delete the symbolic table name. > Create a view with the old name that does a "select * from new_table_name" -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin