How to insert from linux to postgreSQL

Поиск
Список
Период
Сортировка
От Campbell, Lance
Тема How to insert from linux to postgreSQL
Дата
Msg-id 4FB9BF8B-D26C-40FB-9A9C-DEB4FB016292@illinois.edu
обсуждение исходный текст
Ответы Re: How to insert from linux to postgreSQL  (Ron <ronljohnsonjr@gmail.com>)
Re: How to insert from linux to postgreSQL  (Rui DeSousa <rui@crazybean.net>)
Re: How to insert from linux to postgreSQL  (Frank Alberto Rodriguez <franknigth@gmail.com>)
Список pgsql-admin

PostgreSQL 10.x

 

Use case:

I want to read a log file on my linux server and write each line out to a row in a postgreSQL table.  When I do inserts however I want to make sure I am using prepared statements to avoid SQL injections.  I know how to do this is Java but I have not found an example using a linux bash scripts. 

 

Does anyone have an example they could point me to?

 

Thanks,

 

Lance

 

В списке pgsql-admin по дате отправления:

Предыдущее
От: Mark Steben
Дата:
Сообщение: Re: Long running query in new production, not so long in old
Следующее
От: Ron
Дата:
Сообщение: Re: How to insert from linux to postgreSQL