Exporting sql scripts in pgAdmin - Mailing list pgadmin-hackers

From Lukasz Brodziak
Subject Exporting sql scripts in pgAdmin
Date
Msg-id CAGWYGjWORPexK_iUTj-A1Td2Z-gHmVZR_98SuKLfOLV5azXc=A@mail.gmail.com
Whole thread Raw
Responses Re: Exporting sql scripts in pgAdmin  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-hackers
Hi,

Following Dave Page's advice I'd like raise an idea for a feature that would allow users to export table rows as INSERT statements. The idea behind this feature is that we are not always able to use COPY TO/COPY FROM to move data between databases and generating and insert statement based on SELECT result is the answer. It could be an option in 'Execute to file' menu option something like "Export as INSERT script" that after checking would add INSERT INTO <table from select> (columns which we already export) VALUES(values we already export). As a future feature thare can be an option added to input the specific table name if the destination db has the same table defined under different name.
The feature is implemented in EMS SQL Manager for PostgreSQL but buying it just for this option is madness. Besides it's better to put new features into our favourite program than to support the competition :)

--
Łukasz Brodziak

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin III commit: Prevent Cmd+S adding characters to the Query Tool w
Next
From: Timon
Date:
Subject: Re: pgAdmin III commit: Prevent Cmd+S adding characters to the Query Tool w