Fix executor/spi.h to follow our usual conventions for include files, ie,
Tom Lane <tgl@sss.pgh.pa.us>
Fix executor/spi.h to follow our usual conventions for include files, ie, not include postgres.h nor anything else it doesn't directly need. Add #includes to calling files as needed to compensate. Per my proposal of yesterday. This should be noted as a source code change in the 8.4 release notes, since it's likely to require changes in add-on modules.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/spi/autoinc.c | modified | +7 −4 |
| contrib/spi/insert_username.c | modified | +7 −4 |
| contrib/spi/moddatetime.c | modified | +5 −3 |
| contrib/spi/refint.c | modified | +5 −4 |
| contrib/spi/timetravel.c | modified | +10 −9 |
| contrib/tablefunc/tablefunc.c | modified | +2 −1 |
| contrib/xml2/xpath.c | modified | +7 −5 |
| contrib/xml2/xslt_proc.c | modified | +8 −5 |
| doc/src/sgml/spi.sgml | modified | +4 −1 |
| src/backend/executor/spi.c | modified | +9 −1 |
| src/backend/utils/adt/ri_triggers.c | modified | +6 −1 |
| src/backend/utils/adt/ruleutils.c | modified | +7 −1 |
| src/backend/utils/adt/tsquery_rewrite.c | modified | +4 −2 |
| src/backend/utils/adt/tsvector_op.c | modified | +2 −1 |
| src/backend/utils/adt/xml.c | modified | +2 −1 |
| src/include/executor/spi.h | modified | +3 −30 |
| src/pl/plperl/plperl.c | modified | +8 −2 |
| src/pl/plpgsql/src/gram.y | modified | +2 −1 |
| src/pl/plpgsql/src/pl_exec.c | modified | +2 −1 |
| src/pl/plpgsql/src/plpgsql.h | modified | +2 −1 |
| src/pl/tcl/pltcl.c | modified | +4 −1 |
| src/test/regress/regress.c | modified | +12 −7 |