Re: pg_execute_from_file review - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: pg_execute_from_file review
Date
Msg-id 4CF3D1AD.4080605@dunslane.net
Whole thread Raw
In response to Re: pg_execute_from_file review  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers

On 11/29/2010 10:51 AM, Robert Haas wrote:
>>
>> 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.
> Because you execute queries, not files.  Or at least that's how I
> think about it.
>

Well, to me "pg_execute_query_file" says "execute the queries in this 
file". I'm not sure what else it could sensibly mean. But I think any of 
the suggestions will probably work OK.

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_execute_from_file review
Next
From: Joshua Tolley
Date:
Subject: Re: pg_execute_from_file review