greenplum-db / gpdb-postgres-merge-archived Goto Github PK
View Code? Open in Web Editor NEWScratch repository for merging upstream Postgres into GPDB
Scratch repository for merging upstream Postgres into GPDB
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
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.
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?
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.