Re: MySQL-ism help patch for psql

David Christensen <david@endpoint.com>

From: David Christensen <david@endpoint.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@postgresql.org, Magnus Hagander <magnus@hagander.net>
Date: 2010-01-19T21:16:41Z
Lists: pgsql-hackers
On Jan 19, 2010, at 3:12 PM, Andrew Dunstan wrote:

>
>
> David Christensen wrote:
>>
>> +                       if (MYSQL_HELP_CHECK("use"))
>> +                       {
>> +                               MYSQL_HELP_OUTPUT("\\c database");
>> +                       }
>>
> [snip]
>> +                       else if (MYSQL_HELP_CHECK("load data  
>> infile"))
>> +                       {
>> +                               MYSQL_HELP_OUTPUT("\\copy");
>> +                       }
>>
>
> Quite apart from any considerations covered by other people, these  
> two at least could be positively misleading ... the psql commands  
> are not exact equivalents of the MySQL commands, AIUI.

The \copy could definitely be considered a stretch; I know \c supports  
more options than the equivalent USE, but isn't it a proper superset  
of functionality?

Regards,

David
--
David Christensen
End Point Corporation
david@endpoint.com