Re: [pgadmin-support] RFE: Add a TRUNCATE script to scripts menu

From: Dave Page <dpage(at)postgresql(dot)org>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Andrew Lazarus <andrew(at)pillette(dot)com>, pgadmin-support(at)postgresql(dot)org, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgadmin-support] RFE: Add a TRUNCATE script to scripts menu
Date: 2007-11-23 15:38:22
Message-ID: 4746F3EE.9030301@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgadmin-support

Guillaume Lelarge wrote:
> Hi Andrew,
>
> Andrew Lazarus a écrit :
>> Wednesday, October 3, 2007, 1:12:52 AM, you wrote:
>>
>> GL> andrew(at)pillette(dot)com a écrit :
>>>> to go with INSERT, DELETE, etc.
>> GL> I don't see much interest in a TRUNCATE script because there's nothing
>> GL> more to add on the script. How about a simple "Truncate" or "Empty
>> GL> Table" menu in the contextual menu ?
>>
>> Works for me! (Maybe even two: TRUNCATE and TRUNCATE ... CASCADE)
>>
>
> Here is the patch that adds a TRUNCATE and a TRUNCATE CASCADE menus.
> They won't be in the 1.8 release but I hope it will be applied for the
> next one.

Thanks Guillaume - I've applied this with the following tweaks:

- Update the row count and refresh the properties list following the
truncate.

- Add a stronger warning to the 'Are you sure you want to continue'
dialogue.

Thanks, Dave

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2007-11-23 17:03:49 SVN Commit by dpage: r6827 - in trunk/pgadmin3: . pgadmin/frm pgadmin/include/schema pgadmin/schema
Previous Message svn 2007-11-23 15:36:22 SVN Commit by dpage: r6826 - in trunk/pgadmin3: . pgadmin/frm pgadmin/include/schema pgadmin/schema

Browse pgadmin-support by date

  From Date Subject
Next Message Joshua D. Drake 2007-11-23 17:45:05 Re: pgadmin3 1.8.0 for ubuntu/dapper and
Previous Message Raphaël Enrici 2007-11-23 09:38:30 Re: pgadmin3 1.8.0 for ubuntu/dapper and