pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed[BUG FIX] Uninitialized var fargtypes used.
8+ messages / 4 participants
[nested] [flat]
Commits from this thread:
2019-11-12 112caf9039 Finish reverting commit 0a52d378b.
2019-11-12 dcb7d3cafa Have LookupFuncName accept NULL argtypes for 0 args
* [BUG FIX] Uninitialized var fargtypes used.
@ 2019-11-11 17:03 Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 8+ messages in thread
From: Ranier Vilela @ 2019-11-11 17:03 UTC (permalink / raw)
To: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Hi,
Can anyone check this bug fix?
Thanks.
Ranier Vilela
inline patch 1: event_trigger.c (+1/-1 lines) download inline-1.patch
--- \dll\postgresql-12.0\a\backend\commands\event_trigger.c Mon Sep 30 17:06:55 2019
+++ event_trigger.c Mon Nov 11 13:52:35 2019
@@ -171,7 +171,7 @@
HeapTuple tuple;
Oid funcoid;
Oid funcrettype;
- Oid fargtypes[1]; /* dummy */
+ Oid fargtypes[1] = {InvalidOid, InvalidOid}; /* dummy */
Oid evtowner = GetUserId();
ListCell *lc;
List *tags = NULL;
=
Patches and attachments: download all (2 files, .tar.gz)
event_trigger.c.patch (application/octet-stream, 387B) download
--- \dll\postgresql-12.0\a\backend\commands\event_trigger.c Mon Sep 30 17:06:55 2019
+++ event_trigger.c Mon Nov 11 13:52:35 2019
@@ -171,7 +171,7 @@
HeapTuple tuple;
Oid funcoid;
Oid funcrettype;
- Oid fargtypes[1]; /* dummy */
+ Oid fargtypes[1] = {InvalidOid, InvalidOid}; /* dummy */
Oid evtowner = GetUserId();
ListCell *lc;
List *tags = NULL;
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
@ 2019-11-11 17:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Tom Lane @ 2019-11-11 17:32 UTC (permalink / raw)
To: Ranier Vilela <ranier_gyn@hotmail.com>; +Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Ranier Vilela <ranier_gyn@hotmail.com> writes:
> Can anyone check this bug fix?
> - Oid fargtypes[1]; /* dummy */
> + Oid fargtypes[1] = {InvalidOid, InvalidOid}; /* dummy */
Well, it's wrong on its face, because that array only has one element
not two. But why do you care? The element will never be accessed.
The only reason we declare this variable at all is that LookupFuncName
requires a non-null pointer, which if memory serves is because memcmp()
with a null pointer is formally undefined even if the count is zero,
cf commit 0a52d378b.
Maybe it would've been better to make LookupFuncName deal with the
case instead of requiring callers to do strange things. But I don't
see any bug here.
regards, tom lane
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-11-12 07:22 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-11-12 14:01 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 1 reply; 8+ messages in thread
From: Kyotaro Horiguchi @ 2019-11-12 07:22 UTC (permalink / raw)
To: tgl@sss.pgh.pa.us; +Cc: ranier_gyn@hotmail.com; pgsql-bugs@lists.postgresql.org
At Mon, 11 Nov 2019 12:32:38 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote in
> Ranier Vilela <ranier_gyn@hotmail.com> writes:
> > Can anyone check this bug fix?
>
> > - Oid fargtypes[1]; /* dummy */
> > + Oid fargtypes[1] = {InvalidOid, InvalidOid}; /* dummy */
>
> Well, it's wrong on its face, because that array only has one element
> not two. But why do you care? The element will never be accessed.
>
> The only reason we declare this variable at all is that LookupFuncName
> requires a non-null pointer, which if memory serves is because memcmp()
> with a null pointer is formally undefined even if the count is zero,
> cf commit 0a52d378b.
Yes, what is needed there is a valid pointer with any content.
> Maybe it would've been better to make LookupFuncName deal with the
> case instead of requiring callers to do strange things. But I don't
> see any bug here.
Actually it's not an actual bug but a cosmetic adjustment, but not
that bad, I think. Requiring dummy pointer is already a strange thing.
By the way looking closer the function, IIUC, very small change can do
that.
> /*
> * If no arguments were specified, the name must yield a unique candidate.
> */
> if (nargs < 0)
> {
We can change the condition with "nargs <= 0" and it should return the
only element in clist. If the catalog is broken we may get
FUNCLOOKUP_AMBIGUOUS but it seems rather the correct behavior.
This allows argtypes == NULL and makes the caller-side tweak useless.
Thoughts?
--
Kyotaro Horiguchi
NTT Open Source Software Center
Attachments:
Allow_NULL_toLookupFuncNameInternal.patch (text/x-patch, 1.1K) download
diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c
index 8e926539e6..1686a80403 100644
--- a/src/backend/parser/parse_func.c
+++ b/src/backend/parser/parse_func.c
@@ -2035,9 +2035,6 @@ LookupFuncNameInternal(List *funcname, int nargs, const Oid *argtypes,
{
FuncCandidateList clist;
- /* Passing NULL for argtypes is no longer allowed */
- Assert(argtypes);
-
/* Always set *lookupError, to forestall uninitialized-variable warnings */
*lookupError = FUNCLOOKUP_NOSUCHFUNC;
@@ -2047,7 +2044,7 @@ LookupFuncNameInternal(List *funcname, int nargs, const Oid *argtypes,
/*
* If no arguments were specified, the name must yield a unique candidate.
*/
- if (nargs < 0)
+ if (nargs <= 0)
{
if (clist)
{
@@ -2064,6 +2061,9 @@ LookupFuncNameInternal(List *funcname, int nargs, const Oid *argtypes,
return InvalidOid;
}
+ /* Passing NULL for argtypes is no longer allowed */
+ Assert(argtypes);
+
/*
* Otherwise, look for a match to the arg types. FuncnameGetCandidates
* has ensured that there's at most one match in the returned list.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
@ 2019-11-12 14:01 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 16:07 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 8+ messages in thread
From: Alvaro Herrera @ 2019-11-12 14:01 UTC (permalink / raw)
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>; +Cc: tgl@sss.pgh.pa.us; ranier_gyn@hotmail.com; pgsql-bugs@lists.postgresql.org
On 2019-Nov-12, Kyotaro Horiguchi wrote:
> At Mon, 11 Nov 2019 12:32:38 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote in
> > /*
> > * If no arguments were specified, the name must yield a unique candidate.
> > */
> > if (nargs < 0)
> > {
>
> We can change the condition with "nargs <= 0" and it should return the
> only element in clist. If the catalog is broken we may get
> FUNCLOOKUP_AMBIGUOUS but it seems rather the correct behavior.
>
> This allows argtypes == NULL and makes the caller-side tweak useless.
Yeah, essentially this reverts 0a52d378b03b. Here's another version of
this I wrote last night.
BTW I also noticed that ProcedureCreate forces its callers to pass a
non-NULL parameterTypes even for 0 args, which seems to be fixed easily
too, something like this:
inline patch 1: src/backend/catalog/pg_proc.c (+1/-1 lines) download inline-1.patch
diff --git a/src/backend/catalog/pg_proc.c b/src/backend/catalog/pg_proc.c
index ef009ad2bc..547949e534 100644
--- a/src/backend/catalog/pg_proc.c
+++ b/src/backend/catalog/pg_proc.c
@@ -124,7 +124,7 @@ ProcedureCreate(const char *procedureName,
*/
Assert(PointerIsValid(prosrc));
- parameterCount = parameterTypes->dim1;
+ parameterCount = parameterTypes == NULL ? 0 : parameterTypes->dim1;
if (parameterCount < 0 || parameterCount > FUNC_MAX_ARGS)
ereport(ERROR,
(errcode(ERRCODE_TOO_MANY_ARGUMENTS),
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Patches and attachments: download all (2 files, .tar.gz)
nullary.patch (text/x-diff, 4.3K) download
commit e0290fb7a8f40b8f129613c20a8d288b72a90cdb
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
AuthorDate: Tue Nov 12 10:21:04 2019 -0300
CommitDate: Tue Nov 12 11:00:53 2019 -0300
Fix empty args
diff --git a/src/backend/commands/event_trigger.c b/src/backend/commands/event_trigger.c
index 6b022af4ab..f021d71a5c 100644
--- a/src/backend/commands/event_trigger.c
+++ b/src/backend/commands/event_trigger.c
@@ -171,7 +171,6 @@ CreateEventTrigger(CreateEventTrigStmt *stmt)
HeapTuple tuple;
Oid funcoid;
Oid funcrettype;
- Oid fargtypes[1]; /* dummy */
Oid evtowner = GetUserId();
ListCell *lc;
List *tags = NULL;
@@ -237,7 +236,7 @@ CreateEventTrigger(CreateEventTrigStmt *stmt)
stmt->trigname)));
/* Find and validate the trigger function. */
- funcoid = LookupFuncName(stmt->funcname, 0, fargtypes, false);
+ funcoid = LookupFuncName(stmt->funcname, 0, NULL, false);
funcrettype = get_func_rettype(funcoid);
if (funcrettype != EVTTRIGGEROID)
ereport(ERROR,
diff --git a/src/backend/commands/proclang.c b/src/backend/commands/proclang.c
index 343cd1dbb0..b51c373b93 100644
--- a/src/backend/commands/proclang.c
+++ b/src/backend/commands/proclang.c
@@ -105,7 +105,7 @@ CreateProceduralLanguage(CreatePLangStmt *stmt)
* return type.
*/
funcname = SystemFuncName(pltemplate->tmplhandler);
- handlerOid = LookupFuncName(funcname, 0, funcargtypes, true);
+ handlerOid = LookupFuncName(funcname, 0, NULL, true);
if (OidIsValid(handlerOid))
{
funcrettype = get_func_rettype(handlerOid);
@@ -263,7 +263,7 @@ CreateProceduralLanguage(CreatePLangStmt *stmt)
* Lookup the PL handler function and check that it is of the expected
* return type
*/
- handlerOid = LookupFuncName(stmt->plhandler, 0, funcargtypes, false);
+ handlerOid = LookupFuncName(stmt->plhandler, 0, NULL, false);
funcrettype = get_func_rettype(handlerOid);
if (funcrettype != LANGUAGE_HANDLEROID)
{
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index cef6d02f51..84144b46b1 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -179,7 +179,6 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
ScanKeyData key;
Relation pgrel;
HeapTuple tuple;
- Oid fargtypes[1]; /* dummy */
Oid funcrettype;
Oid trigoid;
char internaltrigname[NAMEDATALEN];
@@ -690,7 +689,7 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
* Find and validate the trigger function.
*/
if (!OidIsValid(funcoid))
- funcoid = LookupFuncName(stmt->funcname, 0, fargtypes, false);
+ funcoid = LookupFuncName(stmt->funcname, 0, NULL, false);
if (!isInternal)
{
aclresult = pg_proc_aclcheck(funcoid, GetUserId(), ACL_EXECUTE);
diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c
index 8e926539e6..6f1b7ce422 100644
--- a/src/backend/parser/parse_func.c
+++ b/src/backend/parser/parse_func.c
@@ -2035,8 +2035,8 @@ LookupFuncNameInternal(List *funcname, int nargs, const Oid *argtypes,
{
FuncCandidateList clist;
- /* Passing NULL for argtypes is no longer allowed */
- Assert(argtypes);
+ /* NULL argtypes only allowed for nullary functions */
+ Assert(argtypes || nargs == 0);
/* Always set *lookupError, to forestall uninitialized-variable warnings */
*lookupError = FUNCLOOKUP_NOSUCHFUNC;
@@ -2047,7 +2047,7 @@ LookupFuncNameInternal(List *funcname, int nargs, const Oid *argtypes,
/*
* If no arguments were specified, the name must yield a unique candidate.
*/
- if (nargs < 0)
+ if (nargs <= 0)
{
if (clist)
{
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c
index 73e12788fc..e7640008fd 100644
--- a/src/pl/tcl/pltcl.c
+++ b/src/pl/tcl/pltcl.c
@@ -592,7 +592,6 @@ call_pltcl_start_proc(Oid prolang, bool pltrusted)
const char *gucname;
ErrorContextCallback errcallback;
List *namelist;
- Oid fargtypes[1]; /* dummy */
Oid procOid;
HeapTuple procTup;
Form_pg_proc procStruct;
@@ -616,7 +615,7 @@ call_pltcl_start_proc(Oid prolang, bool pltrusted)
/* Parse possibly-qualified identifier and look up the function */
namelist = stringToQualifiedNameList(start_proc);
- procOid = LookupFuncName(namelist, 0, fargtypes, false);
+ procOid = LookupFuncName(namelist, 0, NULL, false);
/* Current user must have permission to call function */
aclresult = pg_proc_aclcheck(procOid, GetUserId(), ACL_EXECUTE);
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-11-12 14:01 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2019-11-12 16:07 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 20:10 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-13 00:38 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
0 siblings, 2 replies; 8+ messages in thread
From: Tom Lane @ 2019-11-12 16:07 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>; ranier_gyn@hotmail.com; pgsql-bugs@lists.postgresql.org
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2019-Nov-12, Kyotaro Horiguchi wrote:
>> We can change the condition with "nargs <= 0" and it should return the
>> only element in clist. If the catalog is broken we may get
>> FUNCLOOKUP_AMBIGUOUS but it seems rather the correct behavior.
> Yeah, essentially this reverts 0a52d378b03b. Here's another version of
> this I wrote last night.
I really dislike the s/nargs < 0/nargs <= 0/ aspect of these proposals.
That's conflating two fundamentally different corner cases. We have
(1) for the nargs<0 case, there must not be more than one match,
else it's a user mistake (and not an unlikely one).
(2) for the nargs==0 case, if there's more than one match, we either
have corrupted catalogs or some kind of software bug.
The argument for changing the code like this seems to be "we'll
assume the possibility of a bug/corruption is so small that it's
okay to treat it as a user mistake". I reject that line of thinking.
And I especially reject conflating the two cases without bothering
to fix the adjacent comment that describes only case 1.
If we're going to revert 0a52d378b03b we should just treat the
problem straightforwardly. I was imagining
- if (memcmp(argtypes, clist->args, nargs * sizeof(Oid)) == 0)
+ /* if nargs==0, argtypes can be null; don't pass that to memcmp */
+ if (nargs == 0 ||
+ memcmp(argtypes, clist->args, nargs * sizeof(Oid)) == 0)
It's really stretching credulity to imagine that one more test-and-branch
in this loop costs anything worth noticing, especially compared to the
costs of having built the list to begin with. So I'm now feeling that
0a52d378b03b was penny-wise and pound-foolish.
Or, in other words: the OP's complaint here is basically that the
existing code isn't being straightforward about how it handles this
scenario. Changing to a different non-straightforward fix isn't
much of an improvement.
regards, tom lane
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-11-12 14:01 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 16:07 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-11-12 20:10 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 21:59 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 8+ messages in thread
From: Alvaro Herrera @ 2019-11-12 20:10 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>; ranier_gyn@hotmail.com; pgsql-bugs@lists.postgresql.org
On 2019-Nov-12, Tom Lane wrote:
> If we're going to revert 0a52d378b03b we should just treat the
> problem straightforwardly. I was imagining
>
> - if (memcmp(argtypes, clist->args, nargs * sizeof(Oid)) == 0)
> + /* if nargs==0, argtypes can be null; don't pass that to memcmp */
> + if (nargs == 0 ||
> + memcmp(argtypes, clist->args, nargs * sizeof(Oid)) == 0)
>
> It's really stretching credulity to imagine that one more test-and-branch
> in this loop costs anything worth noticing, especially compared to the
> costs of having built the list to begin with. So I'm now feeling that
> 0a52d378b03b was penny-wise and pound-foolish.
I pushed using that approach.
For a minute I thought that it should also test that clist->nargs also
equals 0, but that turns out not to be necessary since the number of
arguments is already considered by FuncnameGetCandidates above.
Thanks
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-11-12 14:01 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 16:07 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 20:10 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2019-11-12 21:59 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 8+ messages in thread
From: Tom Lane @ 2019-11-12 21:59 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>; ranier_gyn@hotmail.com; pgsql-bugs@lists.postgresql.org
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2019-Nov-12, Tom Lane wrote:
>> If we're going to revert 0a52d378b03b we should just treat the
>> problem straightforwardly. I was imagining ...
> I pushed using that approach.
You missed cleaning up func_get_detail, but I took care of it.
regards, tom lane
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [BUG FIX] Uninitialized var fargtypes used.
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Re: [BUG FIX] Uninitialized var fargtypes used. Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-11-12 14:01 ` Re: [BUG FIX] Uninitialized var fargtypes used. Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 16:07 ` Re: [BUG FIX] Uninitialized var fargtypes used. Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-11-13 00:38 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
1 sibling, 0 replies; 8+ messages in thread
From: Kyotaro Horiguchi @ 2019-11-13 00:38 UTC (permalink / raw)
To: tgl@sss.pgh.pa.us; +Cc: alvherre@2ndquadrant.com; ranier_gyn@hotmail.com; pgsql-bugs@lists.postgresql.org
At Tue, 12 Nov 2019 11:07:10 -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote in
> The argument for changing the code like this seems to be "we'll
> assume the possibility of a bug/corruption is so small that it's
> okay to treat it as a user mistake". I reject that line of thinking.
Ah, understood.
> And I especially reject conflating the two cases without bothering
> to fix the adjacent comment that describes only case 1.
Mm. I should be more careful..
Anyway thanks for fixing this!
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2019-11-13 00:38 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 17:03 [BUG FIX] Uninitialized var fargtypes used. Ranier Vilela <ranier_gyn@hotmail.com>
2019-11-11 17:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 07:22 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-11-12 14:01 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 16:07 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-11-12 20:10 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2019-11-12 21:59 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-11-13 00:38 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox