|
|
|
# ----------
|
|
|
|
# src/test/regress/parallel_schedule
|
|
|
|
#
|
|
|
|
# By convention, we put no more than twenty tests in any one parallel group;
|
|
|
|
# this limits the number of connections needed to run the tests.
|
|
|
|
# ----------
|
|
|
|
|
|
|
|
# run tablespace by itself, and first, because it forces a checkpoint;
|
|
|
|
# we'd prefer not to have checkpoints later in the tests because that
|
|
|
|
# interferes with crash-recovery testing.
|
|
|
|
test: tablespace
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# The first group of parallel tests
|
|
|
|
# ----------
|
|
|
|
test: boolean char name varchar text int2 int4 int8 oid float4 float8 bit numeric txid uuid enum money rangetypes pg_lsn regproc
|
|
|
|
|
|
|
|
# Depends on things setup during char, varchar and text
|
|
|
|
test: strings
|
|
|
|
# Depends on int2, int4, int8, float4, float8
|
|
|
|
test: numerology
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# The second group of parallel tests
|
|
|
|
# ----------
|
|
|
|
test: point lseg line box path polygon circle date time timetz timestamp timestamptz interval abstime reltime tinterval inet macaddr tstypes comments
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# geometry depends on point, lseg, box, path, polygon and circle
|
|
|
|
# horology depends on interval, timetz, timestamp, timestamptz, reltime and abstime
|
|
|
|
# ----------
|
Fix regex back-references that are directly quantified with *.
The syntax "\n*", that is a backref with a * quantifier directly applied
to it, has never worked correctly in Spencer's library. This has been an
open bug in the Tcl bug tracker since 2005:
https://sourceforge.net/tracker/index.php?func=detail&aid=1115587&group_id=10894&atid=110894
The core of the problem is in parseqatom(), which first changes "\n*" to
"\n+|" and then applies repeat() to the NFA representing the backref atom.
repeat() thinks that any arc leading into its "rp" argument is part of the
sub-NFA to be repeated. Unfortunately, since parseqatom() already created
the arc that was intended to represent the empty bypass around "\n+", this
arc gets moved too, so that it now leads into the state loop created by
repeat(). Thus, what was supposed to be an "empty" bypass gets turned into
something that represents zero or more repetitions of the NFA representing
the backref atom. In the original example, in place of
^([bc])\1*$
we now have something that acts like
^([bc])(\1+|[bc]*)$
At runtime, the branch involving the actual backref fails, as it's supposed
to, but then the other branch succeeds anyway.
We could no doubt fix this by some rearrangement of the operations in
parseqatom(), but that code is plenty ugly already, and what's more the
whole business of converting "x*" to "x+|" probably needs to go away to fix
another problem I'll mention in a moment. Instead, this patch suppresses
the *-conversion when the target is a simple backref atom, leaving the case
of m == 0 to be handled at runtime. This makes the patch in regcomp.c a
one-liner, at the cost of having to tweak cbrdissect() a little. In the
event I went a bit further than that and rewrote cbrdissect() to check all
the string-length-related conditions before it starts comparing characters.
It seems a bit stupid to possibly iterate through many copies of an
n-character backreference, only to fail at the end because the target
string's length isn't a multiple of n --- we could have found that out
before starting. The existing coding could only be a win if integer
division is hugely expensive compared to character comparison, but I don't
know of any modern machine where that might be true.
This does not fix all the problems with quantified back-references. In
particular, the code is still broken for back-references that appear within
a larger expression that is quantified (so that direct insertion of the
quantification limits into the BACKREF node doesn't apply). I think fixing
that will take some major surgery on the NFA code, specifically introducing
an explicit iteration node type instead of trying to transform iteration
into concatenation of modified regexps.
Back-patch to all supported branches. In HEAD, also add a regression test
case for this. (It may seem a bit silly to create a regression test file
for just one test case; but I'm expecting that we will soon import a whole
bunch of regex regression tests from Tcl, so might as well create the
infrastructure now.)
14 years ago
|
|
|
test: geometry horology regex oidjoins type_sanity opr_sanity
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# These four each depend on the previous one
|
|
|
|
# ----------
|
|
|
|
test: insert
|
|
|
|
test: create_function_1
|
|
|
|
test: create_type
|
|
|
|
test: create_table
|
|
|
|
test: create_function_2
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Load huge amounts of data
|
|
|
|
# We should split the data files into single files and then
|
|
|
|
# execute two copy tests parallel, to check that copy itself
|
|
|
|
# is concurrent safe.
|
|
|
|
# ----------
|
|
|
|
test: copy copyselect
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# More groups of parallel tests
|
|
|
|
# ----------
|
|
|
|
test: create_misc create_operator
|
|
|
|
# These depend on the above two
|
|
|
|
test: create_index create_view
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# ----------
|
Allow CURRENT/SESSION_USER to be used in certain commands
Commands such as ALTER USER, ALTER GROUP, ALTER ROLE, GRANT, and the
various ALTER OBJECT / OWNER TO, as well as ad-hoc clauses related to
roles such as the AUTHORIZATION clause of CREATE SCHEMA, the FOR clause
of CREATE USER MAPPING, and the FOR ROLE clause of ALTER DEFAULT
PRIVILEGES can now take the keywords CURRENT_USER and SESSION_USER as
user specifiers in place of an explicit user name.
This commit also fixes some quite ugly handling of special standards-
mandated syntax in CREATE USER MAPPING, which in particular would fail
to work in presence of a role named "current_user".
The special role specifiers PUBLIC and NONE also have more consistent
handling now.
Also take the opportunity to add location tracking to user specifiers.
Authors: Kyotaro Horiguchi. Heavily reworked by Álvaro Herrera.
Reviewed by: Rushabh Lathia, Adam Brightwell, Marti Raudsepp.
11 years ago
|
|
|
test: create_aggregate create_function_3 create_cast constraints triggers inherit create_table_like typed_table vacuum drop_if_exists updatable_views rolenames
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# sanity_check does a vacuum, affecting the sort order of SELECT *
|
|
|
|
# results. So it should not run parallel to other tests.
|
|
|
|
# ----------
|
|
|
|
test: sanity_check
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Believe it or not, select creates a table, subsequent
|
|
|
|
# tests need.
|
|
|
|
# ----------
|
|
|
|
test: errors
|
|
|
|
test: select
|
|
|
|
ignore: random
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# ----------
|
|
|
|
test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index update namespace prepared_xacts delete
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# ----------
|
|
|
|
test: brin gin gist spgist privileges security_label collate matview lock replica_identity rowsecurity object_address
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# ----------
|
|
|
|
test: alter_generic misc psql async
|
|
|
|
|
|
|
|
# rules cannot run concurrently with any test that creates a view
|
|
|
|
test: rules
|
|
|
|
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# ----------
|
Fix some more problems with nested append relations.
As of commit a87c72915 (which later got backpatched as far as 9.1),
we're explicitly supporting the notion that append relations can be
nested; this can occur when UNION ALL constructs are nested, or when
a UNION ALL contains a table with inheritance children.
Bug #11457 from Nelson Page, as well as an earlier report from Elvis
Pranskevichus, showed that there were still nasty bugs associated with such
cases: in particular the EquivalenceClass mechanism could try to generate
"join" clauses connecting an appendrel child to some grandparent appendrel,
which would result in assertion failures or bogus plans.
Upon investigation I concluded that all current callers of
find_childrel_appendrelinfo() need to be fixed to explicitly consider
multiple levels of parent appendrels. The most complex fix was in
processing of "broken" EquivalenceClasses, which are ECs for which we have
been unable to generate all the derived equality clauses we would like to
because of missing cross-type equality operators in the underlying btree
operator family. That code path is more or less entirely untested by
the regression tests to date, because no standard opfamilies have such
holes in them. So I wrote a new regression test script to try to exercise
it a bit, which turned out to be quite a worthwhile activity as it exposed
existing bugs in all supported branches.
The present patch is essentially the same as far back as 9.2, which is
where parameterized paths were introduced. In 9.0 and 9.1, we only need
to back-patch a small fragment of commit 5b7b5518d, which fixes failure to
propagate out the original WHERE clauses when a broken EC contains constant
members. (The regression test case results show that these older branches
are noticeably stupider than 9.2+ in terms of the quality of the plans
generated; but we don't really care about plan quality in such cases,
only that the plan not be outright wrong. A more invasive fix in the
older branches would not be a good idea anyway from a plan-stability
standpoint.)
11 years ago
|
|
|
test: select_views portals_p2 foreign_key cluster dependency guc bitmapops combocid tsearch tsdicts foreign_data window xmlmap functional_deps advisory_lock json jsonb indirect_toast equivclass
|
|
|
|
# ----------
|
|
|
|
# Another group of parallel tests
|
|
|
|
# NB: temp.sql does a reconnect which transiently uses 2 connections,
|
|
|
|
# so keep this parallel group to at most 19 tests
|
|
|
|
# ----------
|
|
|
|
test: plancache limit plpgsql copy2 temp domain rangefuncs prepare without_oid conversion truncate alter_table sequence polymorphism rowtypes returning largeobject with xml
|
|
|
|
|
|
|
|
# event triggers cannot run concurrently with any test that runs DDL
|
|
|
|
test: event_trigger
|
|
|
|
|
|
|
|
# run stats by itself because its delay may be insufficient under heavy load
|
|
|
|
test: stats
|