Git Product home page Git Product logo

gpdb-postgres-merge-archived's People

Contributors

ashwinstar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpdb-postgres-merge-archived's Issues

Revert 7e81c4b2901d8a692c before merge this branch to master

As discussed, we need to revert 7e81c4b first before merging this branch to GPDB master.

GPDB master is now derived from PG_94_STABLE in which 7e81c4b reverted some commits. however, PG_95 still keep those commits reverted by 7e81c4b.

A note from daniel:

let's make a note of it to ensure that we cherry-pick it into master just before the merge, so that the reverted commit isn’t introduced as part of the merge where it shouldn’t be

CREATE/DROP EXTENSION is broken

w/ @melanieplageman

postgres=# create extension gp_inject_fault;
ERROR:  extension "gp_inject_fault" already exists  (seg0 127.0.1.1:25435 pid=14567)
postgres=# drop extension gp_inject_fault;
ERROR:  extension "gp_inject_fault" does not exist 

However, as pg_regress does, CREATE EXTENSION IF NOT EXISTS works.

support max_wal_size or min_wal_size in gpinitsystem

checkpoint_segments has been replaced by max_wal_size and min_wal_size, GPDB used to allow users to specify checkpoint_segments in gpinitsystem, do we need to support max_wal_size or min_wal_size in gpinitsystem too?

Fake issue for ORCA ICG failures

ICG ORCA failures in iteration_9 (check the box after fixing the issue)

teach ORCA translator about invalid constraints:

  • alter_table

flakes?

  • instr_in_shmem_verify

super slow query with ORCA

  • subselect

mac sorts differently from linux?

  • decode_expr

stale ORCA expect files:

  • union
  • rangefuncs
  • function_extensions
  • update_gp
  • table_functions
  • co_nestloop_idxscan
  • subselect_gp
  • partition_locking (we're not sure though)
  • portals_updatable
  • bfv_dd
  • bb_mpph
  • qp_correlated_query
  • gporca
  • bfv_index
  • olap_window_seq
  • bfv_subquery

CTE

  • qp_misc_jiras
  • qp_derived_table
  • qp_olap_window
  • qp_with_clause
  • with_clause

no clue

  • gpctas
  • sreh
  • bfv_partition
  • qp_dropped_cols
  • query_info_hook_test
  • bfv_aggregate
  • inherit

crashing sadly

  • qp_targeted_dispatch
  • qp_functions
  • qp_correlated_query
  • qp_misc_rio_join_small
  • qp_misc_rio
  • qp_gist_indexes2
  • qp_gist_indexes3
  • qp_gist_indexes4
  • qp_query_execution
  • dpe
  • qp_dpe
  • qp_subquery
  • qp_left_anti_semi_join
  • qp_union_intersect
  • qp_functions_idf
  • qp_regexp
  • qp_resource_queue
  • qp_orca_fallback

Orca produces incorrect plan with FOR UPDATE SKIP LOCKED

Steps to reproduce:

$ gpconfig -c gp_enable_global_deadlock_detector -v on
$ gpstop -air  # GUC above requires server restart

In session 1 run:

CREATE TABLE t AS SELECT * FROM generate_series(1, 4) AS id;
BEGIN;
SELECT * FROM t WHERE id = 2 FOR UPDATE; -- should acquire update lock on tuple 2

In session 2 run:

SELECT * FROM t FOR UPDATE SKIP LOCKED;

Expected result of session 2:

# SELECT * FROM t FOR UPDATE SKIP LOCKED;
 id
----
  1
  3
  4
(3 rows)

Actual result of session 2:

# SELECT * FROM t FOR UPDATE SKIP LOCKED;
 id
----
  1
  2
  3
  4
(4 rows)

Explain plan of planner:

postgres=# EXPLAIN SELECT * FROM t_demo_heap FOR UPDATE SKIP LOCKED;
                                 QUERY PLAN
-----------------------------------------------------------------------------
 Gather Motion 3:1  (slice1; segments: 3)  (cost=0.00..2.08 rows=4 width=10)
   ->  LockRows  (cost=0.00..2.08 rows=2 width=10)
         ->  Seq Scan on t_demo_heap  (cost=0.00..2.04 rows=2 width=10)
 Optimizer: Postgres query optimizer
(4 rows)

Explain plan of orca:

postgres=# EXPLAIN SELECT * FROM t_demo_heap FOR UPDATE SKIP LOCKED;
                                  QUERY PLAN
------------------------------------------------------------------------------
 Gather Motion 3:1  (slice1; segments: 3)  (cost=0.00..431.00 rows=4 width=4)
   ->  Seq Scan on t_demo_heap  (cost=0.00..431.00 rows=2 width=4)
 Optimizer: Pivotal Optimizer (GPORCA) version 3.49.0
(3 rows)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.