pgsql: Clean up pg_dump tests, re-enable BLOB testing

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Clean up pg_dump tests, re-enable BLOB testing
Дата
Msg-id E1c7ojD-0001yK-U1@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Clean up pg_dump tests, re-enable BLOB testing

Add a loop to check that each test covers all of the pg_dump runs.  We
(I) had been a bit sloppy when adding new runs and not making sure to
mark if they should be under like or unlike for each test, this loop
makes sure that the test system will complain if any are forgotten in
the future.

The loop also correctly handles the 'catch all' cases, which are used to
avoid running unnecessary specific checks when a single catch-all can be
done (eg: a no-acl run should not have any GRANT commands).

Also, re-enable the testing of blobs, but use lo_from_bytea() instead of
trying to be cute and writing out to a file and then reading it back in
with psql, which proved to be difficult for some buildfarm members.
This allows us to add support for testing the --no-blobs option which
will be getting added shortly, provided the buildfarm doesn't blow up on
this.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8f91f323b4feef0371cd3db51be3007e44abd5e8

Modified Files
--------------
src/bin/pg_dump/t/002_pg_dump.pl | 860 +++++++++++++++++++++++++++++++--------
1 file changed, 695 insertions(+), 165 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Remove or reduce verbosity of some debug messages.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add pg_sequences view