Re: How to insert from linux to postgreSQL

From: Frank Alberto Rodriguez <franknigth(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: How to insert from linux to postgreSQL
Date: 2019-04-09 16:22:09
Message-ID: a8419f27b80e56b93cd2e53a155b4e37125a9c67.camel@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Then why not using java? Just exec the .jar with the terminal params
and do de job in java, or read a configuration file.Or you could use
PL/java.
https://tada.github.io/pljava/  Greetings 

On Mon, 2019-04-08 at 19:03 +0000, Campbell, Lance wrote:
> 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
>
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message arnab biswas 2019-04-09 16:31:20 Postgresql.conf file not found after database restart.
Previous Message Peter M. Groen 2019-04-09 16:07:19 Re: How to insert from linux to postgreSQL