pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Renaming 800GB size table in postgresql
Date: Tue, 19 Oct 2021 20:04:02 -0400
Message-ID: <0d9bf8bf-d33d-f821-29a3-a890802731f2@gmail.com> (raw)
In-Reply-To: <CAM+6J95sDjOv63+uCNvTkkrkSPRjgfxiA7ObX2WSxJhu82dhAw@mail.gmail.com>
References: <CAPG-CvWHHKeYY9cWXg16j602EfGVUr8z37aJ0Z8DNfQa4HLzeA@mail.gmail.com>
	<CAM+6J95sDjOv63+uCNvTkkrkSPRjgfxiA7ObX2WSxJhu82dhAw@mail.gmail.com>


On 10/19/21 13:17, Vijaykumar Jain wrote:
> so, if I read it correctly, the renaming operation is independent of 
> the size of the table (as it is just updating the system catalog 
> somewhere).


Rename table is done in the data dictionary, where the table is defined. 
You don't even touch the table during the process.

Regards


-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com






view thread (3+ messages)

Message-ID: <0d9bf8bf-d33d-f821-29a3-a890802731f2@gmail.com>
Permalink:  ../0d9bf8bf-d33d-f821-29a3-a890802731f2@gmail.com/
Also on:    postgresql.org/message-id/0d9bf8bf-d33d-f821-29a3-a890802731f2@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gogala.mladen@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Renaming 800GB size table in postgresql
  In-Reply-To: <0d9bf8bf-d33d-f821-29a3-a890802731f2@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox