Comments (2)
What version of Postgres are you observing this with? And can you provide a simple reproduction - it'll make it possible for me to add a test and verify the fix.
Postgres: 15.4
Trino: 450
Steps to reproduce:
docker run --name postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
docker exec -it postgres psql -U postgres
CREATE TABLE measurement (
city_id int not null,
logdate date not null,
peaktemp int,
unitsales int
) PARTITION BY RANGE (logdate);
CREATE TABLE measurement_y2006m02 PARTITION OF measurement
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');
CREATE TABLE measurement_y2006m03 PARTITION OF measurement
FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');
SELECT SUM(child.reltuples)
FROM pg_inherits
JOIN pg_class parent ON pg_inherits.inhparent = parent.oid
JOIN pg_class child ON pg_inherits.inhrelid = child.oid
JOIN pg_namespace parent_ns ON parent_ns.oid = parent.relnamespace
JOIN pg_namespace child_ns ON child_ns.oid = child.relnamespace
WHERE parent.oid = 'public.measurement'::regclass;
sum
-----
-2
(1 row)
CREATE TABLE measurement_y2024m03 PARTITION OF measurement
FOR VALUES FROM ('2024-03-01') TO ('2024-04-01');
SELECT SUM(child.reltuples)
FROM pg_inherits
JOIN pg_class parent ON pg_inherits.inhparent = parent.oid
JOIN pg_class child ON pg_inherits.inhrelid = child.oid
JOIN pg_namespace parent_ns ON parent_ns.oid = parent.relnamespace
JOIN pg_namespace child_ns ON child_ns.oid = child.relnamespace
WHERE parent.oid = 'public.measurement'::regclass;
sum
-----
-3
(1 row)
from trino.
What version of Postgres are you observing this with? And can you provide a simple reproduction - it'll make it possible for me to add a test and verify the fix.
from trino.
Related Issues (20)
- Unable to use SQL parameters for hive's EXECUTE OPTIMIZE commands HOT 2
- Support different types of COW and MOR queries for Apache Hudi
- [Swift] Spooled client protocol extension HOT 10
- bug: insert into truncated memory table seems to reuse truncated data HOT 1
- Concurrent Writes with iceberg connector gives error
- Add Apache Ranger authorizer plugin
- oracle and clickhouse are slow to perform join queries
- Support a case-sensitive column name for Apache Iceberg Rest Catalog HOT 1
- Retrying filesystem operations doesn't make sense for terminal exceptions (like bucket not exists) HOT 1
- Credential leakage when using kafka connector with schema registry HOT 1
- Random function returns the same result for a row when invoked with the same arguments
- JDBC Connection.isValid(long) should verify access token expiration
- Incorrect result for GROUP BY query involving non-deterministic functions
- Add support for `execute` procedure in BigQuery connector HOT 1
- Add support for `execute` procedure in Cassandra connector HOT 1
- Modernize the trino webapp HOT 1
- Flaky Exasol connector CI
- iceberg - dictionaryPagesSize and bloomFilter cannot both be set HOT 2
- Migrate Delta Lake product tests to integration tests
- CLI with --external-authentication doesn't work on headless systems without -Djava.awt.headless=true HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trino.