From: | David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com> |
Cc: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: ALTER TABLE ADD COLUMN fast default |
Date: | 2018-02-18 04:22:53 |
Message-ID: | CAKJS1f_pnRqQdZtmPqCeXq_f7cz6DxGzhmy0U6SrniA0k5kQHw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 17 February 2018 at 10:46, Andrew Dunstan
<andrew(dot)dunstan(at)2ndquadrant(dot)com> wrote:
> The attached version largely fixes with the performance degradation
> that Tomas Vondra reported, replacing an O(N^2) piece of code in
> slot_getmissingattrs() by one that is O(N).
I've looked over this patch and had a play around with it.
Just a couple of things that I noticed while reading:
1. I believe "its" should be "it's" here:
+ /*
+ * Yes, and its of the by-value kind Copy in the Datum
+ */
copy does not need an upper case 'C'. There should also be a comma after "kind"
There's a similar problem with the following:
+ /*
+ * Yes, and its fixed length Copy it out and have teh Datum
+ * point to it.
+ */
there should be a comma after "length" too.
Also, "teh" ...
2. "dfferent" -> "different"
+-- Test a large sample of dfferent datatypes
I'll try to spend some time reviewing the code in detail soon.
--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2018-02-18 04:58:39 | different results from plpgsql functions related to last changes in master |
Previous Message | Peter Eisentraut | 2018-02-18 03:43:38 | Re: BUG #15044: materialized views incompatibility with logical replication in postgres 10 |