Re: [HACKERS] multivariate statistics v11
Hi, I gave a very quick skim to patch 0002. Not a real review yet. But there are a few trivial points to fix: * You still have empty sections in the SGML docs (such as the EXAMPLES). I suppose the syntax is now firm enough that we can get some. (I looked at the other patches to see whether it was filled in, but couldn't find any additional text there.) * check_object_ownership() needs to be filled in * Since you're adding a new object type, please add a case to cover it in the object_address.sql pg_regress test. * in analyze.c (and elsewhere), please put new #include lines sorted. * I think the AT_PASS_ADD_STATS is a leftover which should be removed. * The XXX comment in get_relation_info should probably be handled differently (namely, in a way that makes the syscache not contain OIDs of dropped stats) * The README.dependencies has a lot of TODOs. Do we need to get them done during the first cut? If not, I suggest creating a new section "Future work" in the file. * Please put the common.h header in src/include. Make sure not to include "postgres.h" in it -- our policy is that postgres.h goes at the top of every .c file and never in any .h file. Also please find a better name for it; even mvstats_common.h would be a lot more convincing. However: * ISTM that the code in common.c properly belongs in src/backend/catalog/pg_mvstats.c instead (or more properly catalog/pg_mv_statistics.c), which probably means the common.h file should be named something else; perhaps some of it could become pg_mv_statistic_fn.h, while the rest continues to be src/include/utils/mvstats_common.h? Not sure. * The version check in psql/describe.c uses 90500; should probably be updated to 90600. * _copyCreateStatsStmt is missing if_not_exists -- Álvaro Herrerahttp://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
Re: [HACKERS] multivariate statistics v11
On Tue, Mar 8, 2016 at 12:13 PM, Tomas Vondrawrote: > Hi, > > attached is v11 of the patch - this is mostly a cleanup of v10, removing > redundant code, adding missing comments, removing obsolete FIXME/TODOs > and so on. Overall this shaves ~20kB from the patch (not a primary > objective, though). This has some some conflicts with the pathification commit, in the regression tests. To avoid that, I applied it to the commit before that, 3fc6e2d7f5b652b417fa6^ Having done that, In my hands, it fails its own regression tests. Diff attached. It breaks contrib postgres_fdw, I'll look into that when I get a chance of no one beats me to it. postgres_fdw.c: In function 'postgresGetForeignJoinPaths': postgres_fdw.c:3623: error: too few arguments to function 'clauselist_selectivity' postgres_fdw.c:3642: error: too few arguments to function 'clauselist_selectivity' Cheers, Jeff regression.diffs Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers