postgresql/src/test
Tom Lane f077e1b2e3 Fix timestamptz regression test to still work with latest IANA zone data.
The IANA timezone crew continues to chip away at their project of removing
timezone abbreviations that have no real-world currency from their
database.  The tzdata2017a update removes all such abbreviations for
South American zones, as well as much of the Pacific.  This breaks some
test cases in timestamptz.sql that were expecting America/Santiago and
America/Caracas to have non-numeric abbreviations.

The test cases involving America/Santiago seem to have selected that
zone more or less at random, so just replace it with America/New_York,
which is of similar longitude.  The cases involving America/Caracas are
harder since they were chosen to test a time-varying zone abbreviation
around a point where it changed meaning in the backwards direction.
Fortunately, Europe/Moscow has a similar case in 2014, and the MSK/MSD
abbreviations are well enough attested that IANA seems unlikely to
decide to remove them from the database in future.

With these changes, this regression test should pass when using any IANA
zone database from 2015 or later.  One could wish that there were a few
years more daylight on how out-of-date your zone database can be ... but
really the --with-system-tzdata option is only meant for use on platforms
where the zone database is kept up-to-date pretty faithfully, so I do not
think this is a big objection.

Discussion: https://postgr.es/m/6749.1489087470@sss.pgh.pa.us
2017-03-09 17:20:33 -05:00
..
examples Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
isolation Fix inclusions of postgres_fe.h from .h files. 2017-03-08 20:41:06 -05:00
locale Use 'use strict' in all Perl programs 2017-01-05 12:34:48 -05:00
mb Revert "Fix broken multibyte regression tests." 2016-01-26 08:29:15 +09:00
modules Remove deprecated COMMENT ON RULE syntax 2017-02-23 08:19:52 -05:00
perl Enable replication connections by default in pg_hba.conf 2017-03-09 08:39:44 -05:00
recovery TAP tests for target_session_attrs connection parameter. 2017-02-26 23:41:23 +05:30
regress Fix timestamptz regression test to still work with latest IANA zone data. 2017-03-09 17:20:33 -05:00
ssl Fix typos in comments. 2017-02-06 11:33:58 +02:00
subscription Fix parsing of DROP SUBSCRIPTION ... DROP SLOT 2017-03-03 23:29:13 -05:00
thread Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Makefile Logical replication 2017-01-20 09:04:49 -05:00
README Mention logical replication tests in src/test/README. 2017-01-24 12:57:25 +09:00

PostgreSQL tests
================

This directory contains a variety of test infrastructure as well as some of the
tests in PostgreSQL. Not all tests are here -- in particular, there are more in
individual contrib/ modules and in src/bin.

Not all these tests get run by "make check". Check src/test/Makefile to see
which tests get run automatically.

examples/
  Demonstration programs for libpq that double as regression tests via
  "make check"

isolation/
  Tests for concurrent behavior at the SQL level

locale/
  Sanity checks for locale data, encodings, etc

mb/
  Tests for multibyte encoding (UTF-8) support

modules/
  Extensions used only or mainly for test purposes, generally not suitable
  for installing in production databases

perl/
  Infrastructure for Perl-based TAP tests

recovery/
  Test suite for recovery and replication

regress/
  PostgreSQL's main regression test suite, pg_regress

ssl/
  Tests to exercise and verify SSL certificate handling

subscription/
  Tests for logical replication

thread/
  A thread-safety-testing utility used by configure