Re: generate syscache info automatically
John Naylor <john.naylor@enterprisedb.com>
From: John Naylor <john.naylor@enterprisedb.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-09-01T11:31:14Z
Lists: pgsql-hackers
Attachments
- quick-hack-fix-hash.patch.txt (text/plain)
On Thu, Aug 31, 2023 at 6:23 PM Peter Eisentraut <peter@eisentraut.org> wrote: > Attached is an updated patch set. > > One win here is that the ObjectProperty lookup now uses a hash function > instead of a linear search. So hopefully the performance is better (to > be confirmed) and it could now be used for things like [0]. + # XXX This one neither, but if I add it to @skip, PerfectHash will fail. (???) + #FIXME: AttributeRelationId I took a quick look at this, and attached is the least invasive way to get it working for now, which is to bump the table size slightly. The comment says doing this isn't reliable, but it happens to work in this case. Playing around with the functions is hit-or-miss, and when that fails, somehow the larger table saves the day. -- John Naylor EDB: http://www.enterprisedb.com
Commits
-
Generate syscache info from catalog files
- 9b1a6f50b91d 17.0 landed
-
Fill in more of ObjectProperty
- 0c60e8ba80e0 17.0 landed
-
Correct ObjectProperty entry for transforms
- d7ceb41b9b84 17.0 landed
-
genbki.pl: Factor out boilerplate generation
- f94dec76cc7a 17.0 landed
-
Restructure DECLARE_INDEX arguments
- 226d0a6b989b 17.0 landed
-
Update DECLARE_INDEX documentation
- 908f711d2398 15.5 landed
- 4cdcff4d93b2 16.0 landed
- 3c09d115948c 17.0 landed
-
Replace hardcoded switch in object_exists() with a lookup table.
- fa351d5a0db0 9.2.0 cited