postgresql/src/test/regress
Tomas Vondra a7dc63d904 Refactor geometric functions and operators
The primary goal of this patch is to eliminate duplicate code and share
code between different geometric data types more often, to prepare the
ground for additional patches.  Until now the code reuse was limited,
probably because the simpler types (line and point) were implemented
after the more complex ones.

The changes are quite extensive and can be summarised as:

* Eliminate SQL-level function calls.
* Re-use more functions to implement others.
* Unify internal function names and signatures.
* Remove private functions from geo_decls.h.
* Replace should-not-happen checks with assertions.
* Add comments describe for various functions.
* Remove some unreachable code.
* Define delimiter symbols of line datatype like the other ones.
* Remove the GEODEBUG macro and printf() calls.
* Unify code style of a few oddly formatted lines.

While the goal was to cause minimal user-visible changes, it was not
possible to keep the original behavior in all cases - for example when
handling NaN values, or when reusing code makes the functions return
consistent results.

Author: Emre Hasegeli
Reviewed-by: Kyotaro Horiguchi, me

Discussion: https://www.postgresql.org/message-id/CAE2gYzxF7-5djV6-cEvqQu-fNsnt%3DEqbOURx7ZDg%2BVv6ZMTWbg%40mail.gmail.com
2018-07-29 02:36:29 +02:00
..
data
expected Add strict_multi_assignment and too_many_rows plpgsql checks 2018-07-25 01:46:32 +02:00
input Allow FOR EACH ROW triggers on partitioned tables 2018-03-23 10:48:22 -03:00
output Improve psql's \d command to show whether index columns are key columns. 2018-07-19 14:53:48 -04:00
sql Add strict_multi_assignment and too_many_rows plpgsql checks 2018-07-25 01:46:32 +02:00
.gitignore
GNUmakefile Put back parallel-safety guards in plpython and src/test/regress/. 2018-04-10 16:15:04 -04:00
Makefile
parallel_schedule Don't run fast_default regression test in parallel with other tests. 2018-04-20 17:27:56 -04:00
pg_regress_main.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_regress.c Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. 2018-04-29 21:56:27 -04:00
pg_regress.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
README
regress.c Refactor geometric functions and operators 2018-07-29 02:36:29 +02:00
regressplans.sh
resultmap
serial_schedule Don't run fast_default regression test in parallel with other tests. 2018-04-20 17:27:56 -04:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".