The documentation for SELECT is incorrect in a sense: the syntax for a join is defined as:
The documentation for SELECT is incorrect in a sense: the syntax for a
join is defined as:

from_item [ NATURAL ] join_type from_item
    [ ON join_condition | USING ( join_column_list ) ]

However, if the join_type is an INNER or OUTER join, an ON, USING, or
NATURAL clause *must* be specified (it's not optional, as that segment
of the docs suggest).

I'm not exactly sure what the best way to fix this is, so I've attached
a patch adding a FIXME comment to the relevant section of the SGML. If
anyone has any ideas on the proper way to outline join syntax, please
speak up.

Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

50wu/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,postmind-net/postgres-xl,oberstet/postgres-xl,pavanvd/postgres-xl,ashwinstar/gpdb,snaga/postgres-xl,zeroae/postgres-xl,xuegang/gpdb,greenplum-db/gpdb,Quikling/gpdb,xuegang/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,rvs/gpdb,atris/gpdb,Chibin/gpdb,xinzweb/gpdb,zeroae/postgres-xl,yuanzhao/gpdb,rvs/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,arcivanov/postgres-xl,ahachete/gpdb,CraigHarris/gpdb,xuegang/gpdb,rvs/gpdb,kaknikhil/gpdb,rubikloud/gpdb,foyzur/gpdb,Postgres-XL/Postgres-XL,foyzur/gpdb,adam8157/gpdb,janebeckman/gpdb,xuegang/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,rubikloud/gpdb,royc1/gpdb,rubikloud/gpdb,foyzur/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,zaksoup/gpdb,yazun/postgres-xl,randomtask1155/gpdb,ovr/postgres-xl,chrishajas/gpdb,kaknikhil/gpdb,atris/gpdb,zaksoup/gpdb,janebeckman/gpdb,royc1/gpdb,adam8157/gpdb,kaknikhil/gpdb,rvs/gpdb,edespino/gpdb,janebeckman/gpdb,ashwinstar/gpdb,50wu/gpdb,randomtask1155/gpdb,adam8157/gpdb,chrishajas/gpdb,postmind-net/postgres-xl,chrishajas/gpdb,ahachete/gpdb,techdragon/Postgres-XL,chrishajas/gpdb,lisakowen/gpdb,tangp3/gpdb,lintzc/gpdb,postmind-net/postgres-xl,xinzweb/gpdb,CraigHarris/gpdb,atris/gpdb,yazun/postgres-xl,yuanzhao/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,janebeckman/gpdb,yazun/postgres-xl,Chibin/gpdb,royc1/gpdb,ovr/postgres-xl,rubikloud/gpdb,Quikling/gpdb,ashwinstar/gpdb,50wu/gpdb,randomtask1155/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,Chibin/gpdb,xuegang/gpdb,lintzc/gpdb,yazun/postgres-xl,royc1/gpdb,cjcjameson/gpdb,zaksoup/gpdb,foyzur/gpdb,tangp3/gpdb,lintzc/gpdb,tangp3/gpdb,janebeckman/gpdb,rubikloud/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,yuanzhao/gpdb,lintzc/gpdb,jmcatamney/gpdb,kmjungersen/PostgresXL,royc1/gpdb,lpetrov-pivotal/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,adam8157/gpdb,tpostgres-projects/tPostgres,ahachete/gpdb,Quikling/gpdb,lisakowen/gpdb,lisakowen/gpdb,lintzc/gpdb,greenplum-db/gpdb,atris/gpdb,rubikloud/gpdb,rubikloud/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,janebeckman/gpdb,adam8157/gpdb,edespino/gpdb,CraigHarris/gpdb,foyzur/gpdb,zaksoup/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,Chibin/gpdb,Quikling/gpdb,chrishajas/gpdb,snaga/postgres-xl,randomtask1155/gpdb,yuanzhao/gpdb,chrishajas/gpdb,xuegang/gpdb,CraigHarris/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,Chibin/gpdb,janebeckman/gpdb,Quikling/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,adam8157/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,ashwinstar/gpdb,Chibin/gpdb,chrishajas/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,cjcjameson/gpdb,atris/gpdb,zaksoup/gpdb,cjcjameson/gpdb,Quikling/gpdb,lisakowen/gpdb,Quikling/gpdb,lintzc/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,xinzweb/gpdb,royc1/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,ahachete/gpdb,lpetrov-pivotal/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,xinzweb/gpdb,yazun/postgres-xl,ahachete/gpdb,chrishajas/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,xuegang/gpdb,oberstet/postgres-xl,0x0FFF/gpdb,50wu/gpdb,ovr/postgres-xl,kaknikhil/gpdb,zeroae/postgres-xl,50wu/gpdb,zaksoup/gpdb,Quikling/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,ahachete/gpdb,pavanvd/postgres-xl,zaksoup/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,arcivanov/postgres-xl,xuegang/gpdb,arcivanov/postgres-xl,xinzweb/gpdb,foyzur/gpdb,techdragon/Postgres-XL,cjcjameson/gpdb,Quikling/gpdb,jmcatamney/gpdb,lintzc/gpdb,oberstet/postgres-xl,edespino/gpdb,yuanzhao/gpdb,rvs/gpdb,50wu/gpdb,edespino/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,zaksoup/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,Quikling/gpdb,0x0FFF/gpdb,50wu/gpdb,lintzc/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,royc1/gpdb,kaknikhil/gpdb,zeroae/postgres-xl,rvs/gpdb,edespino/gpdb,xinzweb/gpdb,yuanzhao/gpdb,lisakowen/gpdb,0x0FFF/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,edespino/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,tpostgres-projects/tPostgres,arcivanov/postgres-xl,foyzur/gpdb,atris/gpdb,xinzweb/gpdb,edespino/gpdb,oberstet/postgres-xl,janebeckman/gpdb,cjcjameson/gpdb,kmjungersen/PostgresXL,tangp3/gpdb,rvs/gpdb,xinzweb/gpdb,foyzur/gpdb,CraigHarris/gpdb,edespino/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,xuegang/gpdb,ahachete/gpdb,rubikloud/gpdb,greenplum-db/gpdb,tangp3/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,ovr/postgres-xl,randomtask1155/gpdb,Chibin/gpdb,50wu/gpdb,tangp3/gpdb,randomtask1155/gpdb,tangp3/gpdb,rvs/gpdb,cjcjameson/gpdb,lpetrov-pivotal/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,postmind-net/postgres-xl,zeroae/postgres-xl,edespino/gpdb,Postgres-XL/Postgres-XL,janebeckman/gpdb,postmind-net/postgres-xl,arcivanov/postgres-xl,kaknikhil/gpdb,royc1/gpdb,pavanvd/postgres-xl,adam8157/gpdb,lisakowen/gpdb,rvs/gpdb,greenplum-db/gpdb,ahachete/gpdb,lisakowen/gpdb,snaga/postgres-xl,tangp3/gpdb,rvs/gpdb,lintzc/gpdb,atris/gpdb,yuanzhao/gpdb