Re: [HACKERS] Add function for quote_qualified_identifier?
От | Brendan Jurd |
---|---|
Тема | Re: [HACKERS] Add function for quote_qualified_identifier? |
Дата | |
Msg-id | 37ed240d0709221354j739bcbb8t714508a66863870c@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: [HACKERS] Add function for quote_qualified_identifier?
|
Список | pgsql-patches |
I had some spare cycles so I went ahead and patched this. Patch includes documentation and new regression tests. While I was in there I also added regression tests for quote_ident(), which appeared to be absent. quote_literal doesn't seem to have any regression tests either, but I decided to leave that for another patch. With thanks to Neil Conway for his assistance on IRC. Cheers BJ On 9/15/07, Bruce Momjian <bruce@momjian.us> wrote: > This has been saved for the 8.4 release: > Brendan Jurd wrote: > > Hi hackers, > > > > I note that we currently expose the usefulness of the quote_identifier > > function to the user with quote_ident(text). > > > > Is there any reason we shouldn't do the same with quote_qualified_identifier? > > > > We could just add a quote_qualified_ident(text, text) ... it would > > make forming dynamic queries more convenient in databases that use > > multiple schemas. > > > > Clearly a DBA could just create this function himself in SQL (and it > > wouldn't be difficult), but is that a good reason not to have it in > > our standard set of functions? > > > > Would be happy to cook up a patch for this. > > > > Cheers, > > BJ > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 9: In versions below 8.0, the planner will ignore your desire to > > choose an index scan if your joining column's datatypes do not > > match > > -- > Bruce Momjian <bruce@momjian.us> http://momjian.us > EnterpriseDB http://www.enterprisedb.com > > + If your life is a hard drive, Christ can be your backup. + >
Вложения
В списке pgsql-patches по дате отправления: