Thread: Future of "Apply" button

Future of "Apply" button

From
tarmo sepp
Date:
<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><pre>Is there any hope to get back "Apply" button at least for
functions?After removal of this button my productivity decreased significantly. It was very convenient to apply changes
andto check result in real time. Especially when you're programming mostly stored functions and some of the functions
arevery long.</pre> <pre>I my case there are around 1100 functions and average length is 150 lines. IMHO buggy "Apply"
buttonwas much better than no button at all.</pre><pre><span
style="font-family:arial">------------------------------------------------------------------</span><br/> 

</pre><pre>From changelog (<a href="http://www.pgadmin.org/development/changelog.php"
target="_blank">http://www.pgadmin.org/development/changelog.php</a>):</pre><pre>2013-05-20DP  1.18.0
 </pre><pre>Removethe "Apply" buttons from the function, view package and external table dialogues. Their use is
discouraged,and the code is fragile, complex and very buggy.</pre></div></div><br /></div> 

Re: Future of "Apply" button

From
Dave Page
Date:
On Mon, Jan 6, 2014 at 7:33 AM, tarmo sepp <tarmosepp.sepp@gmail.com> wrote:
> Is there any hope to get back "Apply" button at least for functions?

Not unless someone writes a good, clean reliable implementation, which
seems unlikely.

> After
> removal of this button my productivity decreased significantly. It was very
> convenient to apply changes and to check result in real time. Especially
> when you're programming mostly stored functions and some of the functions
> are very long.
>
> I my case there are around 1100 functions and average length is 150 lines.
> IMHO buggy "Apply" button was much better than no button at all.

We've discouraged the use of the properties dialogue for that purpose
for many years - there's even a Guru Hint that tells you not to use
them that way. You should use the "CREATE SCRIPT" option on a
function, and edit it using the query tool which gives you much more
advanced editing features.

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

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