From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Samuel Williams <space.ship.traveller@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Safe operations?
Date: Sun, 12 Aug 2018 18:24:26 -0700
Message-ID: <dddf5f6d-9270-a64f-35c5-830c05aafd77@aklaver.com> (raw)
In-Reply-To: <CAHkN8V--O-PMk2h5mEhiXvH3Wk2L6k4wzAzjHt5MC3XpiYj3Jg@mail.gmail.com>
References: <CAHkN8V--O-PMk2h5mEhiXvH3Wk2L6k4wzAzjHt5MC3XpiYj3Jg@mail.gmail.com>
On 08/12/2018 05:41 PM, Samuel Williams wrote:
> I wish the documentation would include performance details, i.e. this
> operation is O(N) or O(1) relative to the number of rows.
>
> I found renaming a table was okay.
>
> How about renaming a column? Is it O(1) or proportional to the amount of
> data?
>
> Is there any documentation about this?
https://www.postgresql.org/docs/10/static/sql-altertable.html
"RENAME
The RENAME forms change the name of a table (or an index, sequence,
view, materialized view, or foreign table), the name of an individual
column in a table, or the name of a constraint of the table. There is no
effect on the stored data.
"
>
> Thanks
> Samuel
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, space.ship.traveller@gmail.com
Subject: Re: Safe operations?
In-Reply-To: <dddf5f6d-9270-a64f-35c5-830c05aafd77@aklaver.com>
References: <CAHkN8V--O-PMk2h5mEhiXvH3Wk2L6k4wzAzjHt5MC3XpiYj3Jg@mail.gmail.com> <dddf5f6d-9270-a64f-35c5-830c05aafd77@aklaver.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