From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Adriaan van Os <postgres(at)microbizz(dot)nl> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [BUGS] BUG #2907: pg_get_serial_sequence quoting |
Date: | 2007-01-20 14:27:10 |
Message-ID: | 200701201427.l0KERAx18984@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers pgsql-patches |
Adriaan van Os wrote:
> Bruce Momjian wrote:
>
> > Strangely, this was reported before, but not until November of 2006:
> >
> > http://archives.postgresql.org/pgsql-general/2006-11/msg01111.php
>
> That was a follow up on this thread
> <http://archives.postgresql.org/pgsql-hackers/2004-10/msg00964.php>.
Interesting. In this thread the reason for the current behavior is
given as:
> I presume the reason for that is that the first paramater can be
> qualified:
>
> select pg_get_serial_sequence('"public"."FOO"', 'Ff1');
Would someone explain why qualification makes us lowercase the first
parameter by default? I don't understand it well enough to document it.
I notice this does not work:
test=> SELECT pg_get_serial_sequence('"Test"', '"Xx"');
So do we just say because quotes might be needed to distinguish the
schame from the table name, we don't auto-quote the first parameter?
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-01-20 14:53:27 | Re: BUG #2883: TCP Keep Alive not enabled even after |
Previous Message | Adriaan van Os | 2007-01-20 09:20:52 | Re: BUG #2907: pg_get_serial_sequence quoting |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2007-01-20 14:29:38 | Re: Planning aggregates which require sorted or distinct |
Previous Message | Simon Riggs | 2007-01-20 14:20:11 | Re: Planning aggregates which require sorted or distinct |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-01-20 14:46:11 | Code cleanup |
Previous Message | Gevik Babakhani | 2007-01-20 13:56:28 | Re: guid/uuid datatype |