postgresql/src/test/regress/expected
Robert Haas 11cf92f6e2 Rewrite the code that applies scan/join targets to paths.
If the toplevel scan/join target list is parallel-safe, postpone
generating Gather (or Gather Merge) paths until after the toplevel has
been adjusted to return it.  This (correctly) makes queries with
expensive functions in the target list more likely to choose a
parallel plan, since the cost of the plan now reflects the fact that
the evaluation will happen in the workers rather than the leader.
The original complaint about this problem was from Jeff Janes.

If the toplevel scan/join relation is partitioned, recursively apply
the changes to all partitions.  This sometimes allows us to get rid of
Result nodes, because Append is not projection-capable but its
children may be.  It also cleans up what appears to be incorrect SRF
handling from commit e2f1eb0ee3: the old
code had no knowledge of SRFs for child scan/join rels.

Because we now use create_projection_path() in some cases where we
formerly used apply_projection_to_path(), this changes the ordering
of columns in some queries generated by postgres_fdw.  Update
regression outputs accordingly.

Patch by me, reviewed by Amit Kapila and by Ashutosh Bapat.  Other
fixes for this problem (substantially different from this version)
were reviewed by Dilip Kumar, Amit Khandekar, and Marina Polyakova.

Discussion: http://postgr.es/m/CAMkU=1ycXNipvhWuweUVpKuyu6SpNjF=yHWu4c4US5JgVGxtZQ@mail.gmail.com
2018-03-29 15:49:31 -04:00
..
.gitignore
abstime.out
advisory_lock.out
aggregates.out Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
alter_generic.out Clean up duplicate role and schema names in regression tests. 2018-03-15 14:00:31 -04:00
alter_operator.out Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
alter_table.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
amutils.out Add SQL-accessible functions for inspecting index AM properties. 2016-08-13 18:31:14 -04:00
arrays.out Improve expression evaluation test coverage. 2017-03-11 15:41:34 -08:00
async.out Add new function pg_notification_queue_usage. 2015-07-17 09:12:03 -04:00
bit.out
bitmapops.out
boolean.out Expand AND/OR regression tests around NULL handling. 2018-03-13 16:12:31 -07:00
box.out Fix support for some operators (&<, &>, $<|, |&>) in box operator class 2017-03-21 16:23:10 +03:00
brin.out Fix BRIN cost estimation 2017-04-06 17:51:53 -03:00
btree_index.out Add test cases for indexam operations not currently covered. 2014-11-19 19:47:43 +02:00
case.out Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
char_1.out
char_2.out
char.out
circle.out
cluster.out Ignore partitioned indexes where appropriate 2018-01-25 16:12:15 -03:00
collate.icu.utf8.out Avoid using unsafe search_path settings during dump and restore. 2018-02-26 10:18:21 -05:00
collate.linux.utf8.out Avoid using unsafe search_path settings during dump and restore. 2018-02-26 10:18:21 -05:00
collate.out Avoid using unsafe search_path settings during dump and restore. 2018-02-26 10:18:21 -05:00
combocid.out Fix locking a tuple updated by an aborted (sub)transaction 2016-09-09 15:54:29 -03:00
comments.out
conversion.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
copy2.out Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
copydml.out COPY (INSERT/UPDATE/DELETE .. RETURNING ..) 2015-11-27 19:11:22 +03:00
copyselect.out
create_aggregate.out Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
create_am.out Remove no-op GiST support functions in the core GiST opclasses. 2017-09-19 23:32:59 -04:00
create_cast.out Make CREATE TYPE print warnings if a datatype's I/O functions are volatile. 2014-11-05 11:44:06 -05:00
create_function_3.out Mop-up for letting VOID-returning SQL functions end with a SELECT. 2018-03-16 12:48:13 -04:00
create_index.out Allow UNIQUE indexes on partitioned tables 2018-02-19 17:40:00 -03:00
create_misc.out Improve regression test coverage of regress.c. 2018-02-27 12:13:14 -05:00
create_operator.out Improve regression test coverage of regress.c. 2018-02-27 12:13:14 -05:00
create_procedure.out Stabilize regression test result. 2018-03-25 00:09:26 -04:00
create_table_like.out Fix CREATE TABLE / LIKE with bigint identity column 2018-03-13 09:41:30 -04:00
create_table.out Allow UNIQUE indexes on partitioned tables 2018-02-19 17:40:00 -03:00
create_type.out Fix format_type() to restore its old behavior. 2018-03-01 11:37:46 -05:00
create_view.out Clean up duplicate role and schema names in regression tests. 2018-03-15 14:00:31 -04:00
date.out Allow negative years in make_date to represent BC years 2017-01-19 09:45:38 -03:00
dbsize.out Remove bogus dependencies on NUMERIC_MAX_PRECISION. 2016-08-14 15:06:01 -04:00
delete.out
dependency.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
domain.out Fix ALTER TABLE code to update domain constraints when needed. 2017-11-01 13:32:23 -04:00
drop_if_exists.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
drop_operator.out Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped operator. 2016-03-25 12:33:16 -04:00
enum.out Revert to 9.6 treatment of ALTER TYPE enumtype ADD VALUE. 2017-09-27 16:14:43 -04:00
equivclass.out Reduce "X = X" to "X IS NOT NULL", if it's easy to do so. 2017-10-08 12:23:32 -04:00
errors.out Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
event_trigger.out Fast ALTER TABLE ADD COLUMN with a non-NULL default 2018-03-28 10:43:52 +10:30
expressions.out Improve expression evaluation test coverage. 2017-03-11 15:41:34 -08:00
fast_default.out Make fast_default regression tests locale independent 2018-03-28 17:06:45 +10:30
float4-exp-three-digits.out
float4.out
float8-exp-three-digits-win32.out Improve regression tests for degree-based trigonometric functions. 2016-04-19 16:47:21 -04:00
float8-small-is-zero_1.out Improve regression tests for degree-based trigonometric functions. 2016-04-19 16:47:21 -04:00
float8-small-is-zero.out Improve regression tests for degree-based trigonometric functions. 2016-04-19 16:47:21 -04:00
float8.out Improve regression tests for degree-based trigonometric functions. 2016-04-19 16:47:21 -04:00
foreign_data.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
foreign_key.out Check for pending trigger events on far end when dropping an FK constraint. 2016-11-25 13:44:47 -05:00
func_index.out Use pg_stat_get_xact* functions within xacts 2018-03-28 05:21:00 +01:00
functional_deps.out
geometry_1.out Fix up secondary expected files 2017-08-24 11:13:55 -04:00
geometry_2.out Fix up secondary expected files 2017-08-24 11:13:55 -04:00
geometry.out Improve plural handling in error message 2017-08-23 13:56:59 -04:00
gin.out Make GIN regression test stable. 2016-02-08 23:41:46 +09:00
gist.out Add more tests for reloptions 2017-10-19 14:22:05 +02:00
groupingsets.out Repair crash with unsortable grouping sets. 2018-03-21 11:39:28 +00:00
guc.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
hash_func.out Introduce 64-bit hash functions with a 64-bit seed. 2017-08-31 22:21:21 -04:00
hash_index.out Add more tests for reloptions 2017-10-19 14:22:05 +02:00
hash_part.out Fix multiple problems with satisfies_hash_partition. 2017-11-21 13:06:32 -05:00
horology.out Implement TZH and TZM timestamp format patterns 2018-01-09 14:25:05 -05:00
hs_standby_allowed.out Better fix for sequence access in hot standby test 2017-01-04 08:47:18 -05:00
hs_standby_check.out
hs_standby_disallowed.out regression test: fix hot standby tests by using repeatable read 2014-04-22 17:23:58 -04:00
hs_standby_functions.out Remove all references to "xlog" from SQL-callable functions in pg_proc. 2017-02-09 15:10:09 -05:00
identity.out Clean up duplicate role and schema names in regression tests. 2018-03-15 14:00:31 -04:00
indexing.out Remove two tests inadvertently added in 2b27273435 2018-03-26 22:53:02 +10:30
indirect_toast.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
inet.out Create an SP-GiST opclass for inet/cidr. 2016-08-23 15:16:30 -04:00
inherit.out Improve predtest.c's handling of cases with NULL-constant inputs. 2018-03-21 18:30:46 -04:00
init_privs.out Fix typos in comments. 2017-02-06 11:33:58 +02:00
insert_conflict.out Handle INSERT .. ON CONFLICT with partitioned tables 2018-03-26 10:43:54 -03:00
insert.out Fix state reversal after partition tuple routing 2018-03-19 17:45:53 -03:00
int2.out Add documentation and regression tests concerning rounding of numerics. 2015-07-03 17:04:39 -04:00
int4.out Add documentation and regression tests concerning rounding of numerics. 2015-07-03 17:04:39 -04:00
int8-exp-three-digits.out Add documentation and regression tests concerning rounding of numerics. 2015-07-03 17:04:39 -04:00
int8.out Add documentation and regression tests concerning rounding of numerics. 2015-07-03 17:04:39 -04:00
interval.out Fix integer-overflow problems in interval comparison. 2017-04-05 23:51:27 -04:00
join.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
json_encoding_1.out Factor out encoding specific tests for json 2015-10-07 22:18:27 -04:00
json_encoding.out Factor out encoding specific tests for json 2015-10-07 22:18:27 -04:00
json.out Add tests for json{b}_populate_recordset() crash case. 2017-11-06 10:29:37 -05:00
jsonb.out Add casts from jsonb 2018-03-29 16:33:56 +03:00
limit.out Add regression tests exercising more code paths in nodeLimit.c. 2017-08-11 17:28:01 -04:00
line.out Revert "Tweak "line" test to avoid negative zeros on some platforms" 2013-10-25 15:50:31 -04:00
lock.out Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
lseg.out
macaddr8.out Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
macaddr.out hash: Add write-ahead logging support. 2017-03-14 13:27:02 -04:00
matview.out Remove useless and rather expensive stanza in matview regression test. 2017-05-03 19:37:01 -04:00
misc_functions.out Add num_nulls() and num_nonnulls() to count NULL arguments. 2016-02-04 23:03:37 -05:00
misc_sanity.out Fix over-aggressive sanity check in misc_sanity.sql. 2017-08-28 10:14:46 -04:00
money.out Fix precision and rounding issues in money multiplication and division. 2017-05-21 13:05:16 -04:00
name.out Message style and wording fixes 2016-06-07 14:18:55 -04:00
namespace.out Clean up duplicate role and schema names in regression tests. 2018-03-15 14:00:31 -04:00
numeric_big.out Fix corner-case loss of precision in numeric pow() calculation 2016-05-05 11:16:17 +01:00
numeric.out Fix quoted-substring handling in format parsing for to_char/to_number/etc. 2017-11-18 12:16:37 -05:00
numerology_1.out
numerology.out
object_address.out SQL procedures 2017-11-30 11:03:20 -05:00
oid.out
oidjoins.out Allow FOR EACH ROW triggers on partitioned tables 2018-03-23 10:48:22 -03:00
opr_sanity.out Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
partition_aggregate.out Make new regression indpendent of max_parallel_workers_per_gather. 2018-03-26 14:59:37 -07:00
partition_join.out Rewrite the code that applies scan/join targets to paths. 2018-03-29 15:49:31 -04:00
partition_prune.out Improve predtest.c's internal docs, and enhance its functionality a bit. 2018-03-09 16:58:26 -05:00
password.out Don't allow logging in with empty password. 2017-08-07 17:03:42 +03:00
path.out
pg_lsn.out Tweak new regression test case for better portability. 2014-06-04 21:31:41 -04:00
plancache.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
plpgsql.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
point.out Fix gist_box_same and gist_point_consistent to handle fuzziness correctly. 2013-02-08 18:03:17 -05:00
polygon.out Add polygon opclass for SP-GiST 2017-12-25 18:59:38 +03:00
polymorphism.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
portals_p2.out
portals.out Fix WHERE CURRENT OF when the referenced cursor uses an index-only scan. 2018-03-17 14:59:49 -04:00
prepare.out
prepared_xacts_1.out Remove unnecessary dependency on statement_timeout in prepared_xacts test. 2017-03-13 16:46:32 -04:00
prepared_xacts.out Remove unnecessary dependency on statement_timeout in prepared_xacts test. 2017-03-13 16:46:32 -04:00
privileges.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
psql_crosstab.out Fix incorrect error reporting for duplicate data in \crosstabview. 2016-12-25 16:04:45 -05:00
psql.out Provide a test for variable existence in psql 2017-09-21 19:02:23 -04:00
publication.out Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
random.out
rangefuncs.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
rangetypes.out Fix typcache's failure to treat ranges as container types. 2017-10-20 17:12:27 -04:00
regex.linux.utf8.out Make locale-dependent regex character classes work for large char codes. 2016-09-05 17:06:29 -04:00
regex.out Implement regexp_match(), a simplified alternative to regexp_matches(). 2016-08-17 18:33:01 -04:00
regproc.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
reloptions.out Minor fixes for reloptions tests 2018-03-03 12:51:56 -05:00
reltime.out
replica_identity.out hash: Add write-ahead logging support. 2017-03-14 13:27:02 -04:00
returning.out Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. 2015-05-08 05:43:10 +02:00
roleattributes.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
rolenames.out Clean up duplicate role and schema names in regression tests. 2018-03-15 14:00:31 -04:00
rowsecurity.out Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
rowtypes.out Add tests for record_image_eq and record_image_cmp 2018-01-24 13:23:57 -05:00
rules.out Fix mishandling of quoted-list GUC values in pg_dump and ruleutils.c. 2018-03-21 20:03:28 -04:00
sanity_check.out Add polygon opclass for SP-GiST 2017-12-25 18:59:38 +03:00
security_label.out Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
select_distinct_on.out
select_distinct.out Disable physical tlist if any Var would need multiple sortgroupref labels. 2016-05-26 14:52:30 -04:00
select_having_1.out
select_having_2.out
select_having.out
select_implicit_1.out
select_implicit_2.out
select_implicit.out
select_into.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
select_parallel.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
select_views.out Avoid locale-dependent output in select_views regression test. 2017-05-28 14:52:18 -04:00
select.out Expose explain's SUMMARY option 2017-03-08 15:14:03 -05:00
sequence.out Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
spgist.out Add more tests for reloptions 2017-10-19 14:22:05 +02:00
stats_ext.out Message style fixes 2017-09-11 11:21:27 -04:00
stats.out Allow bitmap scans to operate as index-only scans when possible. 2017-11-01 17:38:20 -04:00
strings.out Add user-callable SHA-2 functions 2018-02-22 11:34:53 -05:00
subscription.out Fix ALTER SUBSCRIPTION grammar ambiguity 2017-06-05 21:43:25 -04:00
subselect.out Add COSTS off to two EXPLAIN using tests. 2018-03-13 16:12:31 -07:00
sysviews.out Implement partition-wise grouping/aggregation. 2018-03-22 12:49:48 -04:00
tablesample.out Don't scan partitioned tables. 2017-03-21 09:48:04 -04:00
temp.out
text.out Improve plural handling in error message 2017-08-23 13:56:59 -04:00
tidscan.out Improve regression test coverage for TID scanning. 2017-03-20 12:30:23 -04:00
time.out
timestamp.out Be more careful about out-of-range dates and timestamps. 2016-03-16 19:09:28 -04:00
timestamptz.out Implement TZH and TZM timestamp format patterns 2018-01-09 14:25:05 -05:00
timetz.out Improve plural handling in error message 2017-08-23 13:56:59 -04:00
tinterval.out
transactions.out Improve savepoint error messages 2018-03-16 13:18:06 -04:00
triggers.out Fix test impredictability 2018-03-26 11:46:04 -03:00
truncate.out Error message improvement 2018-02-20 17:58:27 -05:00
tsdicts.out Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
tsearch.out Make construct_[md_]array return a valid empty array for zero-size input. 2017-09-25 11:55:24 -04:00
tsrf.out Re-allow SRFs and window functions within sub-selects within aggregates. 2017-06-27 17:51:11 -04:00
tstypes.out Ensure that a tsquery like '!foo' matches empty tsvectors. 2017-01-26 12:18:07 -05:00
txid.out Add a txid_status function. 2017-03-24 12:00:53 -04:00
type_sanity.out Set proargmodes for satisfies_hash_partition. 2017-11-17 11:53:00 -05:00
typed_table.out Suppress less info in regression tests using DROP CASCADE. 2017-08-01 16:49:23 -04:00
union.out Fix UNION/INTERSECT/EXCEPT over no columns. 2017-12-22 12:08:06 -05:00
updatable_views.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
update.out Allow UPDATE to move rows between partitions. 2018-01-19 15:33:06 -05:00
uuid.out hash: Add write-ahead logging support. 2017-03-14 13:27:02 -04:00
vacuum.out Add parenthesized options syntax for ANALYZE. 2018-03-05 16:21:05 -08:00
varchar_1.out
varchar_2.out
varchar.out
window.out Add window RANGE support for float4, float8, numeric. 2018-02-24 13:23:38 -05:00
with.out Clean up duplicate table and function names in regression tests. 2018-03-15 17:09:02 -04:00
without_oid.out
write_parallel.out Allow DML commands that create tables to use parallel query. 2017-10-05 11:40:48 -04:00
xml_1.out Fix previous commit's test, for non-UTF8 databases with non-XML builds. 2017-11-11 13:07:46 -08:00
xml_2.out Fix previous commit's test, for non-UTF8 databases with non-XML builds. 2017-11-11 13:07:46 -08:00
xml.out Fix previous commit's test, for non-UTF8 databases with non-XML builds. 2017-11-11 13:07:46 -08:00
xmlmap_1.out Fix cursor_to_xml in tableforest false mode 2017-05-03 21:41:10 -04:00
xmlmap.out Fix cursor_to_xml in tableforest false mode 2017-05-03 21:41:10 -04:00