Re: Adding a column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: Postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Adding a column
Date: 2006-10-29 17:42:08
Message-ID: 28686.1162143728@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Pawley <rjpawley(at)shaw(dot)ca> writes:
> Any thoughts on why dynamically adding a column to a table would require =
> a run time of 24,000 + milliseconds??

Updating all the rows to store the default value, no doubt. See
http://developer.postgresql.org/pgdocs/postgres/ddl-alter.html
especially the tip under 5.5.1.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Troy 2006-10-29 17:45:49 Re: Modifying SQL parser with extensions?
Previous Message Tom Lane 2006-10-29 17:31:23 Re: arrays of user types.