Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG15:ALTER TABLE後のLEFT OUTER JOINでサーバプロセス異常終了 #888

Open
0-kaz opened this issue Mar 8, 2025 · 0 comments
Open
Labels
bug developer confirmed the steps to reproduce the problem, and does not work as expected

Comments

@0-kaz
Copy link
Contributor

0-kaz commented Mar 8, 2025

#625 のリグレッションテストでサーバプロセスが異常終了する。
ただし、再現性が100%でなく、タイミングの問題がある模様。

再現クエリ。以下のクエリを間をおかず一気に実行すると発生する。

SET pg_strom.regression_test_mode = on;
SET client_min_messages = error;
DROP SCHEMA IF EXISTS regtest_miscs CASCADE;
CREATE SCHEMA regtest_miscs;
SET search_path = regtest_miscs,public;
SET pg_strom.enabled=on;
SET enable_seqscan=0;

-- #624

CREATE TABLE t1(c0 money , c1 money);
INSERT INTO t1(c0, c1) VALUES(1, 1);
EXPLAIN(costs off, verbose)
SELECT SUM(t1.c1) FROM t1;
SELECT SUM(t1.c1) FROM t1;


-- #625
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t1;

CREATE TABLE t0(c0 int , c1 int);
INSERT INTO t0(c0, c1) VALUES(0, 1);
CREATE TABLE t1(LIKE t0);
ALTER TABLE t0 DROP c1;
EXPLAIN(costs off, verbose)
SELECT * FROM t1 LEFT OUTER JOIN t0 ON (t1.c0 = t1.c1);
SELECT * FROM t1 LEFT OUTER JOIN t0 ON (t1.c0 = t1.c1);        #ここで発生

以下のように#625部分だけだと発生しない。

DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t1;

CREATE TABLE t0(c0 int , c1 int);
INSERT INTO t0(c0, c1) VALUES(0, 1);
CREATE TABLE t1(LIKE t0);
ALTER TABLE t0 DROP c1;
EXPLAIN(costs off, verbose)
SELECT * FROM t1 LEFT OUTER JOIN t0 ON (t1.c0 = t1.c1);
SELECT * FROM t1 LEFT OUTER JOIN t0 ON (t1.c0 = t1.c1);        #ここで発生
@0-kaz 0-kaz added the bug developer confirmed the steps to reproduce the problem, and does not work as expected label Mar 8, 2025
@0-kaz 0-kaz changed the title ALTER TABLE後のLEFT OUTER JOINでサーバプロセス異常終了 PG15:ALTER TABLE後のLEFT OUTER JOINでサーバプロセス異常終了 Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug developer confirmed the steps to reproduce the problem, and does not work as expected
Projects
None yet
Development

No branches or pull requests

1 participant