Skip to content

Conversation

@MuhammadTahaNaveed
Copy link
Member

@MuhammadTahaNaveed MuhammadTahaNaveed commented Jan 19, 2026

  • Commit also adds permission checks
  • Resolves a critical memory spike issue on loading large file
  • Use pg's COPY infrastructure (BeginCopyFrom, NextCopyFromRawFields) for 64KB buffered CSV parsing instead of libcsv
  • Add byte based flush threshold (64KB) matching COPY behavior for memory safety
  • Use heap_multi_insert with BulkInsertState for optimized batch inserts
  • Add per batch memory context to prevent memory growth during large loads
  • Remove libcsv dependency (libcsv.c, csv.h)
  • Improves loading performance by 15-20%
  • No previous regression tests were impacted
  • Added regression tests for permissions/rls

Assisted-by AI

@github-actions github-actions bot added master override-stale To keep issues/PRs untouched from stale action labels Jan 19, 2026
- Commit also adds permission checks
- Resolves a critical memory spike issue on loading large file
- Use pg's COPY infrastructure (BeginCopyFrom, NextCopyFromRawFields)
  for 64KB buffered CSV parsing instead of libcsv
- Add byte based flush threshold (64KB) matching COPY behavior for memory safety
- Use heap_multi_insert with BulkInsertState for optimized batch inserts
- Add per batch memory context to prevent memory growth during large loads
- Remove libcsv dependency (libcsv.c, csv.h)
- Improves loading performance by 15-20%
- No previous regression tests were impacted
- Added regression tests for permissions/rls
Assisted-by AI
@jrgemignani jrgemignani merged commit b29ca5e into apache:master Jan 19, 2026
7 checks passed
jrgemignani pushed a commit to jrgemignani/age that referenced this pull request Jan 21, 2026
- Commit also adds permission checks
- Resolves a critical memory spike issue on loading large file
- Use pg's COPY infrastructure (BeginCopyFrom, NextCopyFromRawFields)
  for 64KB buffered CSV parsing instead of libcsv
- Add byte based flush threshold (64KB) matching COPY behavior for memory safety
- Use heap_multi_insert with BulkInsertState for optimized batch inserts
- Add per batch memory context to prevent memory growth during large loads
- Remove libcsv dependency (libcsv.c, csv.h)
- Improves loading performance by 15-20%
- No previous regression tests were impacted
- Added regression tests for permissions/rls
Assisted-by AI

Resolved conflict with ExecInitRangeTable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

master override-stale To keep issues/PRs untouched from stale action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants