Re: Dimension limit in contrib/cube (dump/restore hazard?)
Alexander Korotkov <a.korotkov@postgrespro.ru>
From: Alexander Korotkov <a.korotkov@postgrespro.ru>
To: tgl@sss.pgh.pa.us
Cc: x4mmm@yandex-team.ru, andrew@tao11.riddles.org.uk, pgsql-hackers@postgresql.org
Date: 2018-08-30T14:09:33Z
Lists: pgsql-hackers
Attachments
- 0001-cube-split-scientific-notation-test-v2.patch (application/x-patch) patch v2-0001
- 0002-cube-enforce-dimension-checks-v2.patch (application/octet-stream) patch v2-0002
On Thu, Aug 30, 2018 at 4:59 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Alexander Korotkov <a.korotkov@postgrespro.ru> writes: > > I'm going to check this patchset on Windows and commit if no objections. > > These error messages do not conform to our message style guidelines: > you've copied an errdetail message as primary error message, but the > rules are different for that (no complete sentences, no initial cap, > no period). > > Using ERRCODE_ARRAY_ELEMENT_ERROR seems pretty random as well --- so far > as I can see, that's generally used for cases like "this array has the > wrong type of data elements". Perhaps ERRCODE_PROGRAM_LIMIT_EXCEEDED > would be the best choice. Thank you for catching this! I'll be more careful about error messages. ------ Alexander Korotkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Commits
-
Enforce cube dimension limit in all cube construction functions
- f919c165ebdc 12.0 landed
- 36343e59b511 11.0 landed
- 29e07cd22471 10.6 landed
- 5fed7b24aed5 9.6.11 landed
- 9f3ade1a6f62 9.3.25 landed
- 7cea5e6ebfb3 9.4.20 landed
- b187dae9d041 9.5.15 landed
-
Split contrib/cube platform-depended checks into separate test
- 38970ce862b9 12.0 landed
- 1668186eb378 11.0 landed
- 4ffb7c7b3c0a 10.6 landed
- df85f8ecea53 9.6.11 landed
- 5d6a1ee9a50f 9.3.25 landed
- 41180978b403 9.4.20 landed
- 26cbd2325940 9.5.15 landed