postgresql/contrib/plpgsql/test
Bruce Momjian 863a62064c As proposed, here is the current version of PL/pgSQL. The
test isn't that complete up to now,  but  I  think  it  shows
    enough of the capabilities of the module.

    The  Makefile  assumes  it  is  located  in a directory under
    pgsql/src/pl.   Since   it   includes   Makefile.global   and
    Makefile.port  and doesn't use any own compiler/linker calls,
    it should build on most of our supported  platforms  (I  only
    tested  under Linux up to now).  It requires flex and bison I
    think. Maybe we should ship prepared gram.c etc. like for the
    main parser too?


Jan
1998-08-22 12:38:39 +00:00
..
expected As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
mklang.sql As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
README As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
runtest As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
tables.sql As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
test.sql As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
triggers.sql As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00
views.sql As proposed, here is the current version of PL/pgSQL. The 1998-08-22 12:38:39 +00:00

Test suite for PL/pgSQL

Scenario:

    A building with a modern TP cabel installation where any
    of the wall connectors can be used to plug in phones,
    ethernet interfaces or local office hubs. The backside
    of the wall connectors is wired to one of several patch-
    fields in the building.

    In the patchfields, there are hubs and all the slots
    representing the wall connectors. In addition there are
    slots that can represent a phone line from the central
    phone system.

    Triggers ensure consistency of the patching information.

    Functions are used to build up powerful views that let
    you look behind the wall when looking at a patchfield
    or into a room.