Thread: Create, Insert etc scripts

Create, Insert etc scripts

From
Tim Uckun
Date:
Hi All.

What is the technique pgadmin uses to generate those scripts?  I would like to be able to generate them from my own application using a pg connection.

Thanks.

Re: Create, Insert etc scripts

From
Dave Page
Date:
On Thu, Jun 26, 2014 at 2:54 AM, Tim Uckun <timuckun@gmail.com> wrote:
> Hi All.
>
> What is the technique pgadmin uses to generate those scripts?  I would like
> to be able to generate them from my own application using a pg connection.

They are created by pgAdmin which reverse engineers the SQL itself.

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: Create, Insert etc scripts

From
Tim Uckun
Date:
Thanks.

I'll take a look at the source.




On Thu, Jun 26, 2014 at 7:43 PM, Dave Page <dpage@pgadmin.org> wrote:
On Thu, Jun 26, 2014 at 2:54 AM, Tim Uckun <timuckun@gmail.com> wrote:
> Hi All.
>
> What is the technique pgadmin uses to generate those scripts?  I would like
> to be able to generate them from my own application using a pg connection.

They are created by pgAdmin which reverse engineers the SQL itself.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company