postgresql/src/test
Michael Paquier 7aa81c61ec Fix precision handling for some COERCE_SQL_SYNTAX functions
f193883 has been incorrectly setting up the precision used in the
timestamp compilations returned by the following functions:
- LOCALTIME
- LOCALTIMESTAMP
- CURRENT_TIME
- CURRENT_TIMESTAMP

Specifying an out-of-range precision for CURRENT_TIMESTAMP and
LOCALTIMESTAMP was raising a WARNING without adjusting the precision,
leading to a subsequent error.  LOCALTIME and CURRENT_TIME raised a
WARNING without an error, still the precision given to the internal
routines was not correct, so let's be clean.

Ian has reported the problems in timestamp.c, while I have noticed the
ones in date.c.  Regression tests are added for all of them with
precisions high enough to provide coverage for the warnings, something
that went missing up to this commit.

Author: Ian Lawrence Barwick, Michael Paquier
Discussion: https://postgr.es/m/CAB8KJ=jQEnn9sYG+N752spt68wMrhmT-ocHCh4oeNmHF82QMWA@mail.gmail.com
2022-12-30 20:47:57 +09:00
..
authentication Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
examples Remove configure probe for sys/select.h. 2022-08-14 00:09:47 +12:00
icu Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
isolation Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
kerberos Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
ldap Use existing SSL certs in LDAP tests instead of generating them 2022-12-20 10:02:49 -05:00
locale pycodestyle (PEP 8) cleanup in Python scripts 2022-03-09 10:54:20 +01:00
mb
modules Fix end LSN determination in recently added test 2022-12-23 17:27:05 +01:00
perl Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
recovery Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
regress Fix precision handling for some COERCE_SQL_SYNTAX functions 2022-12-30 20:47:57 +09:00
ssl Use existing SSL certs in LDAP tests instead of generating them 2022-12-20 10:02:49 -05:00
subscription Add 'logical_decoding_mode' GUC. 2022-12-26 08:58:16 +05:30
Makefile Refactor PG_TEST_EXTRA logic in autoconf build 2022-09-20 11:24:16 -07:00
meson.build Add copyright notices to meson files 2022-12-20 07:54:39 -05:00
README

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.

authentication/
  Tests for authentication (but see also below)

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

isolation/
  Tests for concurrent behavior at the SQL level

kerberos/
  Tests for Kerberos/GSSAPI authentication and encryption

ldap/
  Tests for LDAP-based authentication

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