Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zr3g0-0007p0-GN for pgadmin-hackers@arkaria.postgresql.org; Tue, 27 Oct 2015 12:48:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zr3fz-0006fc-IA for pgadmin-hackers@arkaria.postgresql.org; Tue, 27 Oct 2015 12:48:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zr3fy-0006eC-Se for pgadmin-hackers@postgresql.org; Tue, 27 Oct 2015 12:48:30 +0000 Received: from smtp53.i.mail.ru ([94.100.177.113]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zr3fv-00083U-K5 for pgadmin-hackers@postgresql.org; Tue, 27 Oct 2015 12:48:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Subject:CC:To:Message-ID:Reply-To:From:Date; bh=Xhey0nYFXsHCsvn83VVEfu6LBcI9j/W095QOcybWNN8=; b=CIi94Y/mY9rB1EPGGTto2oZTPlXAqyTwHI2hYkcKMnWAvORsNjK0wn4rdsvu8j6tkMhY+etKeqOWXzV7HW+0pNoQyFY918mobvqUPXFbLuepaY/MiLze4pIghoAMMvC3J0Uc1eBpqXaupJTf+LxtnQXek+VZfzNHW21UjjHFMeI=; Received: from [46.147.124.234] (port=49325 helo=HomePC) by smtp53.i.mail.ru with esmtpa (envelope-from ) id 1Zr3fu-0006CP-4a; Tue, 27 Oct 2015 15:48:26 +0300 Date: Tue, 27 Oct 2015 15:48:23 +0300 From: "J.F. Oster" Reply-To: "J.F. Oster" X-Priority: 3 (Normal) Message-ID: <534200955.20151027154823@mail.ru> To: jarek CC: pgadmin-hackers@postgresql.org Subject: Re: SQL formatting In-Reply-To: <1445849459.17392.68.camel@jlap3.macro.local> References: <1445849459.17392.68.camel@jlap3.macro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mras: Ok X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hello jarek, Upcoming release will have a new feature, external formatting tool. You can setup pgAdmin to invoke your script with Ctrl-Shift-F in the query editor. There are a few other utilities available, see discussion http://www.postgresql.org/message-id/110456625.20150503104217@mail.ru http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=40509183da5524e4ed499ab6eece20a4fdda3a32 Beta is available already, please test it: http://www.postgresql.org/ftp/pgadmin3/release/v1.22.0-beta1/ Regarding integration, it's questionable because Python is not available out of the box on every supported platform... Monday, October 26, 2015, 11:50:59 AM, you wrote: j> Hello! j> First of all I'd like to thank all the pgAdmin developers for a great j> job! j> As I like to have nice formatted SQL, I've written simple script in j> python to format SQL procedures. It would be nice, to integrate it with j> pgAdmin. j> This script doesn't cover all PostgreSQL structures, but is enough for j> me. If there will be some interest, I can improve it. j> I think that it should be enough to add call to this script from SQL j> query dialog menu. I've no experience with wxWidgets, so it may be j> better if someone more skilled will integrate it. j> best regards j> Jarek Tabor -- Best regards, J.F. -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers