Re: massive quotes?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: massive quotes?
Дата
Msg-id 3858.1062375924@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: massive quotes?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: massive quotes?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: massive quotes?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> In that case, though, the solution will presumably look at least a bit 
> different from those discussed so far in this thread. Or would you have 
> psql detect that in place of a string there was "stdin" or whatever and 
> then replace it with the inline string before passing it to the backend?

Please see the archives.  I think that what was being discussed was
something along the lines of
foo=> CREATE FUNCTION myfunc(...) RETURNS ... ASfoo=> \beginliteralfoo'> type my function definition herefoo'> and
herefoo'>\endliteralfoo-> LANGUAGE plpgsql;
 

and psql would proceed to quotify whatever you entered between
the two backslash commands.  (Notice this could be used for any
string-literal entry problem, not only CREATE FUNCTION.)  I'm fuzzy on
the details though; this may not have been the best idea presented.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: massive quotes?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: massive quotes?