From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> |
Cc: | Amit Khandekar <amit(dot)khandekar(at)enterprisedb(dot)com>, Marti Raudsepp <marti(at)juffo(dot)org>, Tatsuo Ishii <ishii(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Vik Fearing <vik(dot)fearing(at)dalibo(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pavel Golub <pavel(at)gf(dot)microolap(dot)com>, Pavel Golub <pavel(at)microolap(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Pavel Stěhule <pavel(dot)stehule(at)gmail(dot)com> |
Subject: | Re: Fwd: Proposal: variant of regclass |
Date: | 2014-01-31 16:19:35 |
Message-ID: | CA+TgmoZ5qGL3Xo5fw=25hTB2Qb7918koEG24XzDz7y7YnTKnvg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Jan 31, 2014 at 6:31 AM, Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> wrote:
> Hi Amit,
>
> Thanks for your reviewing. I updated the patch.
> I fixed the oids and removed the witespace.
This patch contains several whitespace-only hunks. Please revert them.
I don't like the changes to typenameTypeIdAndMod(). The code for the
missing_ok case shouldn't look completely different from the code for
the !missing_ok case. It would be cleaner to start by duplicating
typenameType into typenameTypeIdAndMod and then adjusting it as needed
to support the new argument. It might be better still to just change
parseTypeString() to call LookupTypeName() directly, and add the
necessary logic to handle missing_ok there. The advantage of that is
that you wouldn't need to modify everybody who is calling
typenameTypeIdAndMod(); there are a decent number of such callers
here, and there might be third-party code calling that as well.
I think the changes this patch makes to OpernameGetCandidates() need a
bit of further consideration. The new argument is called missing_ok,
but OpernameGetCandidates() can already return an empty list. What
that new argument does is tolerate a missing schema name. So we could
call the argument missing_schema_ok, I guess, but I'm still not sure I
like that. I don't have a better proposal right at the moment,
though.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2014-01-31 16:23:08 | Re: pgindent behavior we could do without |
Previous Message | Bruce Momjian | 2014-01-31 16:18:17 | Re: pgindent behavior we could do without |