tech-userlevel archive

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

Re: Alternative to hash-bang



On Fri, 18 Jul 2014 19:23:17 -0400
Greg Troxel <gdt%ir.bbn.com@localhost> wrote:
> Once --!! happens, then there will be requests to add all sorts of
> things, and this seems like a mess.  Surely it's easy enough to teach

As I said, '#', ';' and '--' seem to cover most situations.  Maybe '%'
to a much smaller extent.  Can you think of many other possibilities?

> psql to ignore the first line if it starts with #!, because that's
> obviously not valid sql.  Then it would work everywhere.

True and that's a good solution for PG.  Just thinking out loud here.

-- 
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost


Home | Main Index | Thread Index | Old Index