Re: psql scripting tutorials

Поиск
Список
Период
Сортировка
Искать
От
Blazej
Тема
Re: psql scripting tutorials
Дата
Msg-id
819df3760809121337o4fc71affn34e39b485154af7f@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: psql scripting tutorials Harald Fuchs <hari.fuchs@gmail.com>
Re: psql scripting tutorials Alvaro Herrera <alvherre@commandprompt.com>
Re: psql scripting tutorials Peter Eisentraut <peter_e@gmx.net>
Re: psql scripting tutorials Alvaro Herrera <alvherre@commandprompt.com>
Re: psql scripting tutorials Peter Eisentraut <peter_e@gmx.net>
Re: psql scripting tutorials Kevin Hunter <hunteke@earlham.edu>
Re: psql scripting tutorials "Roderick A. Anderson" <raanders@acm.org>
Re: psql scripting tutorials Michelle Konzack <linux4michelle@tamay-dogan.net>
Re: psql scripting tutorials Artacus <artacus@comcast.net>
> Ok then. Does anyone have any tips or best practices for scripting psql?
>
> I'll probably write some bash scripts to pull csv files over then script
> psql to do a COPY into an import schema then run a pl/pgsql procedure, er
> function, to do all ETL.
>
> Who else is doing something like this? Can psql access environmental
> variables or command line params? Or do I have to have my bash script write
> a psql script every time?
>

Maybe you should try pltcl/pltclu - it's very powerfull (and my
favorite) language for ETL  within PostgreSQL server (read files, TCP,
regular expresion etc.). If you have XWindow based boxes you may use
tk package and even to use graphical user interface (for example
DialogBox as parameters input) on remotex boxes from pltclu (sometimes
I do that).

For external ETL I am using Java Eclipse or Eclipse RCP Framework and
embeded python language (formaly jython) - very important fact is that
jython scripts may controlled Eclipse widgets (for example
ProgressBar).

Regards,
Blazej
В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
От: Greg Smith
Дата:
FAQ