]> granicus.if.org Git - postgresql/commit
Prevent a backend crash when processing CREATE TABLE commands with
authorNeil Conway <neilc@samurai.com>
Tue, 16 Nov 2004 23:34:26 +0000 (23:34 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 16 Nov 2004 23:34:26 +0000 (23:34 +0000)
commite1bf6527f60a53f1d4abfb9fa6ad71e8694218b3
tree0361e04f6944a4a77cc709978b41d9751b9e21a8
parent8a1821ab5b27a2bfc491881207f595a5157236ab
Prevent a backend crash when processing CREATE TABLE commands with
more than 65K columns, or when the created table has more than 65K columns
due to adding inherited columns from parent relations. Fix a similar
crash when processing SELECT queries with more than 65K target list
entries. In all three cases we would eventually detect the error and
elog, but the check was being made too late.
src/backend/commands/tablecmds.c
src/backend/parser/analyze.c