Skip to content

Conversation

@steve-chavez
Copy link
Member

The string representing the null can now be specified.

SELECT csv_agg(x, csv_options(nullstr:='<NULL>')) AS body
FROM   projects x;

              body
--------------------------------
 id,name,client_id             +
 1,Death Star OS,1             +
 2,Windows 95 Rebooted,1       +
 3,"Project ""Comma,Please""",2+
 4,"Escape """"Plan""""",2     +
 <NULL>,NULL & Void,<NULL>
(1 row)

Also other refinements for reaching 1.0.

@coveralls
Copy link

coveralls commented Sep 1, 2025

Pull Request Test Coverage Report for Build 17367670895

Details

  • 32 of 33 (96.97%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 99.099%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/pg_csv.c 21 22 95.45%
Totals Coverage Status
Change from base Build 16893383871: 0.1%
Covered Lines: 110
Relevant Lines: 111

💛 - Coveralls

@steve-chavez steve-chavez force-pushed the to-1.0 branch 2 times, most recently from 97eb3a9 to 73abc77 Compare September 1, 2025 03:32
Otherwise installers can't replace the shared lib location by modifying
the control file.
mul_size has an overflow guard
Split was done too early, keep modules simple for now.

Also add some clarifying comments.
The string representing the null can now be specified.

```sql
SELECT csv_agg(x, csv_options(nullstr:='<NULL>')) AS body
FROM   projects x;

              body
--------------------------------
 id,name,client_id             +
 1,Death Star OS,1             +
 2,Windows 95 Rebooted,1       +
 3,"Project ""Comma,Please""",2+
 4,"Escape """"Plan""""",2     +
 <NULL>,NULL & Void,<NULL>
(1 row)
```
Use a northwind database extract, remove unnecessary loadtests.

Only one test using all the csv options in a single loadtest is necessary to
ensure perf doesn't drop when adding new options.

This makes the CI summary show fully instead of hiding some parts.
@steve-chavez steve-chavez marked this pull request as ready for review September 1, 2025 04:35
@steve-chavez steve-chavez merged commit e50b6ff into PostgREST:master Sep 1, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants