Search Postgresql Archives

Re: Petition: Treat #!... shebangs as comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 18, 2014 at 10:51 AM, Francisco Olarte
<folarte@xxxxxxxxxxxxxx> wrote:
> Hi:
>
> On Fri, Jul 18, 2014 at 5:16 PM, Andrew Pennebaker
> <andrew.pennebaker@xxxxxxxxx> wrote:
>> Could we please have the PostgreSQL lexer treat #!... on the first line of a
>> file as a comment? This would enable .psql scripts to be run with dot-slash
>> notation preferred by many unix users:
>>
>> ./script.psql
>
> Dot-slash is not a notation, it's a requisite if you do ( correctly )
> not have . in your $PATH.
>
> Anyway, this is a little bit complex, as psql many times needs arguments.

true, but pretty much everything you might need can be handled via the
environment and the script itself.   there are plenty of good reasons
do this and I can't think of any not to.

merlin



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux