Remove broken code that tried to handle OVERLAPS with a single argument.
Remove broken code that tried to handle OVERLAPS with a single argument.

The SQL standard says that OVERLAPS should have a two-element row
constructor on each side.  The original coding of OVERLAPS support in
our grammar attempted to extend that by allowing a single-element row
constructor, which it internally duplicated ... or tried to, anyway.
But that code has certainly not worked since our List infrastructure was
rewritten in 2004, and I'm none too sure it worked before that.  As it
stands, it ends up building a List that includes itself, leading to
assorted undesirable behaviors later in the parser.

Even if it worked as intended, it'd be a bit evil because of the
possibility of duplicate evaluation of a volatile function that the user
had written only once.  Given the lack of documentation, test cases, or
complaints, let's just get rid of the idea and only support the standard
syntax.

While we're at it, improve the error cursor positioning for the
wrong-number-of-arguments errors, and inline the makeOverlaps() function
since it's only called in one place anyway.

Per bug #9227 from Joshua Yanovski.  Initial patch by Joshua Yanovski,
extended a bit by me.

50wu/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,yazun/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,xinzweb/gpdb,adam8157/gpdb,jmcatamney/gpdb,zeroae/postgres-xl,ovr/postgres-xl,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,adam8157/gpdb,adam8157/gpdb,oberstet/postgres-xl,xinzweb/gpdb,pavanvd/postgres-xl,50wu/gpdb,lisakowen/gpdb,50wu/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,pavanvd/postgres-xl,techdragon/Postgres-XL,50wu/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,ashwinstar/gpdb,ovr/postgres-xl,greenplum-db/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,jmcatamney/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,oberstet/postgres-xl,50wu/gpdb,jmcatamney/gpdb,yazun/postgres-xl,yazun/postgres-xl,zeroae/postgres-xl,oberstet/postgres-xl,50wu/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,lisakowen/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,ashwinstar/gpdb,50wu/gpdb,xinzweb/gpdb,xinzweb/gpdb,adam8157/gpdb,ovr/postgres-xl,jmcatamney/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,xinzweb/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,oberstet/postgres-xl,50wu/gpdb,zeroae/postgres-xl,ovr/postgres-xl,yazun/postgres-xl,lisakowen/gpdb,ovr/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,zeroae/postgres-xl,xinzweb/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,adam8157/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,greenplum-db/gpdb,lisakowen/gpdb,lisakowen/gpdb,yazun/postgres-xl