mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 22:12:56 +00:00
NOAI (#9084)
We can't FlushOneBuffer when we're in redo-only mode on PageServer, so make execution of that function conditional on us not running in pageserver walredo mode.
This commit is contained in:
committed by
GitHub
parent
1c5d6e59a0
commit
d865881d59
1
.github/workflows/build_and_test.yml
vendored
1
.github/workflows/build_and_test.yml
vendored
@@ -1207,7 +1207,6 @@ jobs:
|
||||
# Usually we do `needs: [...]`
|
||||
needs:
|
||||
- build-and-test-locally
|
||||
- check-submodules
|
||||
- check-codestyle-python
|
||||
- check-codestyle-rust
|
||||
- promote-images
|
||||
|
||||
@@ -15,8 +15,13 @@ def test_unlogged(neon_simple_env: NeonEnv):
|
||||
cur = conn.cursor()
|
||||
|
||||
cur.execute("CREATE UNLOGGED TABLE iut (id int);")
|
||||
# create index to test unlogged index relation as well
|
||||
# create index to test unlogged index relations as well
|
||||
cur.execute("CREATE UNIQUE INDEX iut_idx ON iut (id);")
|
||||
cur.execute("CREATE INDEX ON iut USING gist (int4range(id, id, '[]'));")
|
||||
cur.execute("CREATE INDEX ON iut USING spgist (int4range(id, id, '[]'));")
|
||||
cur.execute("CREATE INDEX ON iut USING gin ((id::text::jsonb));")
|
||||
cur.execute("CREATE INDEX ON iut USING brin (id);")
|
||||
cur.execute("CREATE INDEX ON iut USING hash (id);")
|
||||
cur.execute("ALTER TABLE iut ADD COLUMN seq int GENERATED ALWAYS AS IDENTITY;")
|
||||
cur.execute("INSERT INTO iut (id) values (42);")
|
||||
|
||||
@@ -39,3 +44,12 @@ def test_unlogged(neon_simple_env: NeonEnv):
|
||||
assert results == [(43, 2)]
|
||||
else:
|
||||
assert results == [(43, 1)]
|
||||
|
||||
# Flush all data and compact it, so we detect any errors related to
|
||||
# unlogged indexes materialization.
|
||||
ps_http = env.pageserver.http_client()
|
||||
ps_http.timeline_compact(
|
||||
tenant_id=env.initial_tenant,
|
||||
timeline_id=env.initial_timeline,
|
||||
force_image_layer_creation=True,
|
||||
)
|
||||
|
||||
2
vendor/postgres-v14
vendored
2
vendor/postgres-v14
vendored
Submodule vendor/postgres-v14 updated: a38d15f323...2199b83fb7
2
vendor/postgres-v15
vendored
2
vendor/postgres-v15
vendored
Submodule vendor/postgres-v15 updated: 16c3c6b64f...22e580fe9f
2
vendor/postgres-v16
vendored
2
vendor/postgres-v16
vendored
Submodule vendor/postgres-v16 updated: 1d7081a3b0...e131a9c027
2
vendor/postgres-v17
vendored
2
vendor/postgres-v17
vendored
Submodule vendor/postgres-v17 updated: 2cf120e739...7b3e52c75c
8
vendor/revisions.json
vendored
8
vendor/revisions.json
vendored
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"v17": [
|
||||
"17rc1",
|
||||
"2cf120e7393ca5f537c6a38b457585576dc035fc"
|
||||
"7b3e52c75ca384de9c69477c158b1f5dcdcbb4be"
|
||||
],
|
||||
"v16": [
|
||||
"16.4",
|
||||
"1d7081a3b076ddf5086e0b118d4329820e6a7427"
|
||||
"e131a9c027b202ce92bd7b9cf2569d48a6f9948e"
|
||||
],
|
||||
"v15": [
|
||||
"15.8",
|
||||
"16c3c6b64f1420a367a2a9b2510f20d94f791af8"
|
||||
"22e580fe9ffcea7e02592110b1c9bf426d83cada"
|
||||
],
|
||||
"v14": [
|
||||
"14.13",
|
||||
"a38d15f3233a4c07f2bf3335fcbd874dd1f4e386"
|
||||
"2199b83fb72680001ce0f43bf6187a21dfb8f45d"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user