Re: selective export for subsequent import (COPY)
От
Andrew Kroeger
Тема
Re: selective export for subsequent import (COPY)
Дата
Msg-id
462CA356.6030508@sprocks.gotdns.com
Ответ на
Список
Дерево обсуждения
selective export for subsequent import (COPY) chrisj <chrisj.wood@sympatico.ca>
Re: selective export for subsequent import (COPY) "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: selective export for subsequent import (COPY) Brent Wood <b.wood@niwa.co.nz>
Re: selective export for subsequent import (COPY) "Harvey, Allan AC" <HarveyA@OneSteel.com>
Re: selective export for subsequent import (COPY) chrisj <chrisj.wood@sympatico.ca>
Re: selective export for subsequent import (COPY) Tom Lane <tgl@sss.pgh.pa.us>
Re: selective export for subsequent import (COPY) chrisj <chrisj.wood@sympatico.ca>
Re: selective export for subsequent import (COPY) Andrew Kroeger <andrew@sprocks.gotdns.com>
Re: selective export for subsequent import (COPY) chrisj <chrisj.wood@sympatico.ca>
Re: selective export for subsequent import (COPY) Thomas Pundt <mlists@rp-online.de>
Re: selective export for subsequent import (COPY) Brent Wood <b.wood@niwa.co.nz>
Re: selective export for subsequent import (COPY) chrisj <chrisj.wood@sympatico.ca>
Re: selective export for subsequent import (COPY) Brent Wood <b.wood@niwa.co.nz>
Tom Lane wrote: > chrisj writes: >> This helped a lot, but ideally I want a tab field delimiter and -F '\t' does >> not seem to work, any ideas?? > > I don't think there's any provision for backslash-notation in that > switch; you'd need to type an actual tab character there. Depending on > what shell you use, that might be a bit difficult on an interactive > shell command line, but it should be simple enough to insert one in a > script file. I'm not sure what shell is being used, but the following works with bash, csh, tcsh, and ksh under Linux: In order to emit an actual tab character on the shell command line (and ignore any shell auto-completion features that are normally tied to the tab key), preface the literal tab character with Ctrl-V. Thus, the delimiter specification from above would be typed "-F ''". Hope this helps. Andrew
В списке pgsql-general по дате отправления