Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PostgreSQL File Text Array FDW

NotificationsYou must be signed in to change notification settings

adunstan/file_text_array_fdw

Repository files navigation

This FDW is similar to the provided file_fdw, except that insteadof the foreign table having named fields to match the fields in thedata file, it should have a single field of type text[]. The parsedfields will be stashed in the array. This is useful if you don'tknow how many fields are in the file, or if the number can varyfrom line to line. Unlike standard COPY files and the file_fdwmodule, this module doesn't care how many fields there are - howevermany it finds on each line will be put into the array.

Example of use:

-- only needs to be done onceCREATE EXTENSION file_textarray_fdw;-- usually only needs to be done onceCREATE SERVER file_server FOREIGN DATA WRAPPER file_textarray_fdw;CREATE FOREIGN TABLE agg_csv_array (   ttext[])   SERVER file_server  OPTIONS (format'csv',            filename'/path/to/agg.csv',            header'true',            delimiter';',            quote'@',            escape'"',null'');SELECT t[1]::int2AS a,        t[2]::float4AS bFROM agg_csv_array;

About

PostgreSQL File Text Array FDW

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp