RE: BUG #16991: regclass is not case sensitive causing "relation does not exist" error

From: Federico Caselli <cfederico87(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #16991: regclass is not case sensitive causing "relation does not exist" error
Date: 2021-05-05 07:53:41
Message-ID: D9A9B6A9-B1F0-4B38-B998-D99749322487@hxcore.ol
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-docs

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=IT link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>The patch is also clear for me, thanks for working on it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Best,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Federico</span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:laurenz(dot)albe(at)cybertec(dot)at">Laurenz Albe</a><br><b>Sent: </b>mercoledì 5 maggio 2021 09:32<br><b>To: </b><a href="mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us">Tom Lane</a>; <a href="mailto:cfederico87(at)gmail(dot)com">Federico</a><br><b>Cc: </b><a href="mailto:pgsql-docs(at)lists(dot)postgresql(dot)org">pgsql-docs(at)lists(dot)postgresql(dot)org</a><br><b>Subject: </b>Re: BUG #16991: regclass is not case sensitive causing &quot;relation does not exist&quot; error</p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>On Tue, 2021-05-04 at 19:18 -0400, Tom Lane wrote:</p><p class=MsoNormal>&gt; [ redirecting to pgsql-docs list ]</p><p class=MsoNormal>&gt; </p><p class=MsoNormal>&gt; I wrote:</p><p class=MsoNormal>&gt; &gt; Federico &lt;cfederico87(at)gmail(dot)com&gt; writes:</p><p class=MsoNormal>&gt; &gt; &gt; I did not come across that documented behavior while searching for regclass</p><p class=MsoNormal>&gt; &gt; &gt; in the pg docs. The most relevant page I was able to find was the Object</p><p class=MsoNormal>&gt; &gt; &gt; Identifier Types page that does not mention it.</p><p class=MsoNormal>&gt; &gt; &gt; I'll look into proposing a change in that docs page to mention it, if</p><p class=MsoNormal>&gt; &gt; &gt; that's the appropriate location for it.</p><p class=MsoNormal>&gt; &gt; Hmm ... I *thought* it was documented, but perhaps not.  If not,</p><p class=MsoNormal>&gt; &gt; it's likely that the other reg* types are likewise underdocumented.</p><p class=MsoNormal>&gt; </p><p class=MsoNormal>&gt; So what I was remembering was some text in the section about sequence</p><p class=MsoNormal>&gt; functions.  That probably seemed appropriate when they were the only</p><p class=MsoNormal>&gt; real use of regclass; but these days we have regclass-accepting functions</p><p class=MsoNormal>&gt; all over, not to mention other OID alias types.  I propose the attached</p><p class=MsoNormal>&gt; patch to move this info into the &quot;Object Identifier Types&quot; section.</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>That patch looks good to me.</p><p class=MsoNormal>I think it is an improvement to have that discussed under &quot;data types&quot;.</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Yours,</p><p class=MsoNormal>Laurenz Albe</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>

Attachment Content-Type Size
unknown_filename text/html 3.8 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kieran McCusker 2021-05-05 08:41:27 Re: ogr_fdw missing from /pub/repos/yum/13/fedora/fedora-34-x86_64/
Previous Message Laurenz Albe 2021-05-05 07:32:14 Re: BUG #16991: regclass is not case sensitive causing "relation does not exist" error

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2021-05-05 09:55:20 Re: Clarify how triggers relate to transactions
Previous Message Laurenz Albe 2021-05-05 07:32:14 Re: BUG #16991: regclass is not case sensitive causing "relation does not exist" error