• 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: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • bom
  • csv_options
  • csv_populate
  • csv_read
  • delim
  • header
  • master
  • 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
31995782568 csv_read Merge 9af17d0ab into 48da3b7c7 Pull #14 17 Aug 2026 04:51AM UTC web-flow github
98.84
31995141674 csv_read Merge 5e6c3cdd3 into 48da3b7c7 Pull #14 17 Aug 2026 04:39AM UTC web-flow github
98.84
31994651681 csv_read Merge c517f3cf1 into 48da3b7c7 Pull #14 17 Aug 2026 04:31AM UTC web-flow github
98.85
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
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