Re: reducing the footprint of ScanKeyword (was Re: Large writable variables)
От
John Naylor
Тема
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables)
Дата
Msg-id
CACPNZCvbzZunkUzwwL-59ky0E2v6rhLRLyAidzz1juzCGh8kMg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) David Rowley <david.rowley@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Joel Jacobson <joel@trustly.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Joel Jacobson <joel@trustly.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Robert Haas <robertmhaas@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) David Fetter <david@fetter.org>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Robert Haas <robertmhaas@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) David Fetter <david@fetter.org>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
On Tue, Jan 8, 2019 at 5:31 PM Tom Lane wrote: > > John Naylor writes: > > In the committed keyword patch, I noticed that in common/keywords.c, > > the array length is defined with > > ScanKeywordCategories[SCANKEYWORDS_NUM_KEYWORDS] > > but other keyword arrays just have ...[]. Is there a reason for the difference? > > The length macro was readily available there so I used it. AFAIR > that wasn't true elsewhere, though I might've missed something. > It's pretty much just belt-and-suspenders coding anyway, since all > those arrays are machine generated ... I tried using the available num_keywords macro in plpgsql and it worked fine, but it makes the lines really long. Alternatively, as in the attached, we could remove the single use of the core macro and maybe add comments to the generated magic numbers. -- John Naylor https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления
От: John Naylor
Дата:
От: John Naylor
Дата: