postgresql/src/test/modules
Tom Lane 003c68a3b4 Rename rbtree.c functions to use "rbt" prefix not "rb" prefix.
The "rb" prefix is used by Ruby, so that our existing code results
in name collisions that break plruby.  We discussed ways to prevent
that by adjusting dynamic linker options, but it seems that at best
we'd move the pain to other cases.  Renaming to avoid the collision
is the only portable fix anyway.  Fortunately, our rbtree code is
not (yet?) widely used --- in core, there's only a single usage
in GIN --- so it seems likely that we can get away with a rename.

I chose to do this basically as s/rb/rbt/g, except for places where
there already was a "t" after "rb".  The patch could have been made
smaller by only touching linker-visible symbols, but it would have
resulted in oddly inconsistent-looking code.  Better to make it look
like "rbt" was the plan all along.

Back-patch to v10.  The rbtree.c code exists back to 9.5, but
rb_iterate() which is the actual immediate source of pain was added
in v10, so it seems like changing the names before that would have
more risk than benefit.

Per report from Pavel Raiskup.

Discussion: https://postgr.es/m/4738198.8KVIIDhgEB@nb.usersys.redhat.com
2018-11-06 13:25:24 -05:00
..
brin perltidy: Add option --nooutdent-long-quotes 2018-04-27 11:37:43 -04:00
commit_ts Rework activation of commit timestamps during recovery 2018-09-26 10:25:54 +09:00
dummy_seclabel Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
snapshot_too_old Add a regression test for snapshot too old with hash indexes. 2017-03-15 10:53:07 -04:00
test_bloomfilter Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
test_ddl_deparse Fix event triggers for partitioned tables 2018-10-06 19:17:46 -03:00
test_extensions psql: Use more consistent capitalization of some output headings 2017-06-13 14:41:14 -04:00
test_parser Update copyright for 2018 2018-01-02 23:30:12 -05:00
test_pg_dump Restrict vertical tightness to parentheses in Perl code 2018-05-09 10:14:46 -04:00
test_predtest Improve predtest.c's handling of cases with NULL-constant inputs. 2018-03-21 18:30:46 -04:00
test_rbtree Rename rbtree.c functions to use "rbt" prefix not "rb" prefix. 2018-11-06 13:25:24 -05:00
test_rls_hooks Create an RTE field to record the query's lock mode for each relation. 2018-09-30 13:55:51 -04:00
test_shm_mq Use a ResourceOwner to track buffer pins in all cases. 2018-07-18 12:15:16 -04:00
worker_spi Fix worker_spi for new parameter to initialize connection 2018-04-05 19:14:50 +02:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
README Add README in src/test and src/test/modules 2016-02-25 21:08:32 -03:00

Test extensions and libraries
=============================

src/test/modules contains PostgreSQL extensions that are primarily or entirely
intended for testing PostgreSQL and/or to serve as example code. The extensions
here aren't intended to be installed in a production server and aren't suitable
for "real work".

Most extensions have their own pg_regress tests or isolationtester specs. Some
are also used by tests elsewhere in the tree.

If you're adding new hooks or other functionality exposed as C-level API this
is where to add the tests for it.