-
Notifications
You must be signed in to change notification settings - Fork 147
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
Postgres support for partitioned tables #3339
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3339 +/- ##
==========================================
- Coverage 24.65% 24.62% -0.03%
==========================================
Files 395 395
Lines 45872 45919 +47
==========================================
- Hits 11310 11308 -2
- Misses 33441 33489 +48
- Partials 1121 1122 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Benchstat Geomean Results0.26% sec/op, -0.02% B/op, 0.00% allocs/op Benchstat results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work, left a few comments, nothing blocking, just Q's
@@ -708,7 +760,7 @@ BEGIN | |||
SELECT 1 | |||
FROM pg_class c | |||
JOIN pg_namespace n ON n.oid = c.relnamespace | |||
WHERE c.relkind = 'i' | |||
WHERE c.relkind in ('i', 'I') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the capital I
entail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I = partitioned index
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks postgres that is super clear.
@@ -317,7 +317,7 @@ func (p *PostgresTestContainer) DropSchemas(ctx context.Context, schemas []strin | |||
} | |||
|
|||
func (p *PostgresTestContainer) GetTableRowCount(ctx context.Context, schema, table string) (int, error) { | |||
rows := p.DB.QueryRow(ctx, fmt.Sprintf("SELECT COUNT(*) FROM ONLY %q.%q;", schema, table)) | |||
rows := p.DB.QueryRow(ctx, fmt.Sprintf("SELECT COUNT(*) FROM %q.%q;", schema, table)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, what was the ONLY
doing that broke this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I accidentally left that in when I was trying to get inherited tables to work. It was breaking the partitioned tables counts since ONLY ignores any rows that exist in the child tables
Count: destOpts.BatchCount, | ||
Period: destOpts.BatchPeriod, | ||
Count: destOpts.BatchCount, | ||
Processors: []*neosync_benthos.BatchProcessor{sqlProcessor}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe weird diff, but were we basically building the processors but never actually doing anything with them? And now we are?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we were only using the processors on insert configs. Now we use the processors on the insert and update configs
Fixed neosync type bug when updating table
Fixed postgres get extensions query returning all schema specific extensions