postgresql/contrib/dblink
Tom Lane 8a3b6772ae Fix contrib/dblink to handle inconsistent DateStyle/IntervalStyle safely.
If the remote database's settings of these GUCs are different from ours,
ambiguous datetime values may be read incorrectly.  To fix, temporarily
adopt the remote server's settings while we ingest a query result.

This is not a complete fix, since it doesn't do anything about ambiguous
values in commands sent to the remote server; but there seems little we
can do about that end of it given dblink's entirely textual API for
transmitted commands.

Back-patch to 9.2.  The hazard exists in all versions, but this patch
would need more work to apply before 9.2.  Given the lack of field
complaints about this issue, it doesn't seem worth the effort at present.

Daniel Farina and Tom Lane
2013-03-22 15:22:54 -04:00
..
expected Fix contrib/dblink to handle inconsistent DateStyle/IntervalStyle safely. 2013-03-22 15:22:54 -04:00
sql Fix contrib/dblink to handle inconsistent DateStyle/IntervalStyle safely. 2013-03-22 15:22:54 -04:00
.gitignore
dblink--1.0--1.1.sql Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -04:00
dblink--1.1.sql Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -04:00
dblink--unpackaged--1.0.sql
dblink.c Fix contrib/dblink to handle inconsistent DateStyle/IntervalStyle safely. 2013-03-22 15:22:54 -04:00
dblink.control Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -04:00
dblink.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Add mode where contrib installcheck runs each module in a separately named database. 2012-12-11 11:52:45 -05:00