From: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
---|---|
To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | David Rowley <dgrowleyml(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, sawada(dot)mshk(at)gmail(dot)com, 9erthalion6(at)gmail(dot)com, ashutosh(dot)bapat(dot)oss(at)gmail(dot)com, hlinnaka(at)iki(dot)fi, houzj(dot)fnst(at)cn(dot)fujitsu(dot)com, florisvannee(at)optiver(dot)com |
Subject: | Re: Keep notnullattrs in RelOptInfo (Was part of UniqueKey patch series) |
Date: | 2021-07-07 13:24:18 |
Message-ID: | CAEudQArL_WFiU5ZkheToVXDwRf9nf8S_yMn94RyLmhgQd+qyFg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>You can check the more details in the attached patch. Any feedback is
welcome.
I have tiny comments about your patch:
1. name of file is uniquekey.c?
+ * pathkeys.c
+ * Utilities for maintaining uniquekey.
2. Variable "PathKey *pathkey" at function: add_uniquekey_for_uniqueindex,
can have scope reduced.
+ indexpr_item = list_head(unique_index->indexprs);
+ for (c = 0; c < unique_index->nkeycolumns; c++)
+ {
+ PathKey *pathkey;
3. Variable int c = 0, has a redundant initialization at function:
add_uniquekey_for_uniqueindex.
4. Has one word with misspelled?
"/* We can't *guarantee* an FuncExpr will not return NULLs */"
4. Variable int i = -1, has a redudant initialization at function:
uniquekey_contains_in
5. __attribute__ ((unused)) at function: build_composited_uniquekey, is
incompatible with msvc.
6. Postgres uses a newline after variables declarations.
regards,
Ranier Vilela
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2021-07-07 13:25:13 | Re: Warn if initdb's --sync-only option is mixed with other options |
Previous Message | Dagfinn Ilmari Mannsåker | 2021-07-07 13:16:05 | Re: PostgreSQL-13.3 parser.y with positional references by named references |