• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PostgREST / pg_csv
99%

Build:
DEFAULT BRANCH: master
Repo Added 02 Aug 2025 02:03AM UTC
Token zayFEHGX8BauwrjoMl5CfR7RHA8jjzfkV regen
Build 65 Last
Files 5
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
Sync Branches
  • master
  • bom
  • csv_options
  • csv_populate
  • csv_read
  • delim
  • header
  • regress
  • to-1.0
  • v0.1
  • v1.0
  • v1.0.1
  • v1.0.2

17 Aug 2026 04:55AM UTC coverage: 98.842% (-0.3%) from 99.099%
31996132686

push

github

steve-chavez
add: csv_read function

The `csv_read(anyelement, text)` function can read inline text values, respecting quoting and escaping inside quotes.

```sql
select id, name
from csv_read(null::projects, E'1,IOS,4\n2,"Win""dows",4') where id = 2;
 id |   name
----+----------
  2 | Win"dows
```

This allows for greater flexibility, csv_read can be combined with
pg_read_file, inserts, limit/offset, etc.

Notes
-----

- For performance it uses SIMD parsing (via cparsec.h, which uses memchr) and avoids pallocing in
  the hot path (see `csv_slice_to_cstr`, which is a bit of a trick).
- Performance is checked by comparing to COPY CSV, this is included in
  the bench tests.

110 of 112 new or added lines in 2 files covered. (98.21%)

256 of 259 relevant lines covered (98.84%)

904.27 hits per line

Relevant lines Covered
Build:
Build:
259 RELEVANT LINES 256 COVERED LINES
904.27 HITS PER LINE
Source Files on master
  • Tree
  • List 5
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
31996132686 master add: csv_read function The `csv_read(anyelement, text)` function can read inline text values, respecting quoting and escaping inside quotes. ```sql select id, name from csv_read(null::projects, E'1,IOS,4\n2,"Win""dows",4') where id = 2; id | ... push 17 Aug 2026 04:57AM UTC steve-chavez github
98.84
31357407823 master bench: runs on latest pg 19 push 10 Aug 2026 05:05AM UTC steve-chavez github
99.1
31352361749 master bench: rename and put md header in report push 10 Aug 2026 03:23AM UTC steve-chavez github
99.1
31352105973 master bench: run all in a single job push 10 Aug 2026 03:17AM UTC steve-chavez github
99.1
31348671392 master bench: only one csv_agg bench Having two is unnecessary, it was done this way to ensure no regression happened between the call to csv_agg with args and without args; but now that we have a comparison between csv_agg and custom_csv we'll know if ... push 10 Aug 2026 02:04AM UTC steve-chavez github
99.1
30714111205 master bench: clarify file names push 01 Aug 2026 07:10PM UTC steve-chavez github
99.1
30713326213 master chore: vendor cparsec v2.3.0 push 01 Aug 2026 06:49PM UTC steve-chavez github
99.1
29708777919 master chore: refine README push 20 Jul 2026 12:00AM UTC steve-chavez github
99.1
29706966398 master chore: upgrade xpg to get pg19beta1 push 19 Jul 2026 10:55PM UTC steve-chavez github
99.1
28274430212 master chore: upgrade xpg push 27 Jun 2026 01:29AM UTC steve-chavez github
99.1
See All Builds (65)

Badge your Repo: pg_csv

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc