Re: pg_execute_from_file review

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pg_execute_from_file review
Дата
Msg-id 4CF3D285.8010801@dunslane.net
обсуждение исходный текст
Ответ на Re: pg_execute_from_file review  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_execute_from_file review  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On 11/29/2010 11:12 AM, Tom Lane wrote:
> Andrew Dunstan<andrew@dunslane.net>  writes:
>> I'm not sure why you need either "from". It just seems like a noise
>> word. Maybe we could use pg_execute_query_file() and
>> pg_execute_query_string(), which would be fairly clear and nicely
>> symmetrical.
> +1, but I think "query" is also a noise word here.
> Why not just "pg_execute_file" and "pg_execute_string"?
>
>             

Well, I put that in to make it clear that the file/string is expected to 
contain SQL and not, say, machine code. But I agree we could possibly do 
without it.

cheers

andrew


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

Предыдущее
От: Joshua Tolley
Дата:
Сообщение: Re: pg_execute_from_file review
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_execute_from_file review