Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iBfON-0005qg-Qp for pgsql-admin@arkaria.postgresql.org; Sat, 21 Sep 2019 13:25:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iBfOL-00074x-2A for pgsql-admin@arkaria.postgresql.org; Sat, 21 Sep 2019 13:25:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iBfOK-000746-3o for pgsql-admin@lists.postgresql.org; Sat, 21 Sep 2019 13:25:36 +0000 Received: from pb-smtp20.pobox.com ([173.228.157.52]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iBfOE-0005jN-D0 for pgsql-admin@lists.postgresql.org; Sat, 21 Sep 2019 13:25:33 +0000 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 81FEB89A7E for ; Sat, 21 Sep 2019 09:25:27 -0400 (EDT) (envelope-from agreene@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to:content-transfer-encoding; s=sasl; bh=xkZSGueTVUsBl L7VGCSKhRrtD0Y=; b=noRWPcx6yddjLMdBWc2sdgbrCqK5cAKKdGxtmnowjdiO6 zL8O5+vbdq6CsMziSud+PTN98faJCDWG8En8tCNRVu2Xnl21kCtlpC3ggt7NypmP 2uPpMOWtTsCPCHIY4+Uw6Qy9cgTbf7F578IbttEY9sP8ICsrJC+bK8enY4FqUE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to :subject:message-id:references:mime-version:content-type :in-reply-to:content-transfer-encoding; q=dns; s=sasl; b=v828HGH L+KGzavoVdceqyycBBbdSczWF9EGN6dxEi5vY3iVc0qX1VNHmU6yAhbbA2d4kjeo aG3q61wtNfhZzYiC9Dbfhq4Hg3ezd00/6JyJY8w8IE4Ls2ptQmsrB1yviRVWPkAn PdcE6yFdQjGXFXg5g2AsZN4Slv7ZMtCuGhXA= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 7B9AC89A7D for ; Sat, 21 Sep 2019 09:25:27 -0400 (EDT) (envelope-from agreene@pobox.com) Received: from lnxws01.localdomain (unknown [71.120.16.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id F150389A7B for ; Sat, 21 Sep 2019 09:25:24 -0400 (EDT) (envelope-from agreene@pobox.com) Date: Sat, 21 Sep 2019 09:25:22 -0400 From: "Anthony E. Greene" To: pgsql-admin@lists.postgresql.org Subject: Re: GUI tool for Raspberry Pi - PostgreSQL 11.5 Message-ID: <20190921132522.GA26861@lnxws01.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: OpenPGP: id=7B3DBD7D7D911B44BA26C484A42A60DD6C94239D; url=http://www.greene-family.org/tony/pgp/0x6C94239D.asc; preference=signencrypt X-vCard: User-Agent: Mutt/1.12.1 (2019-06-15) X-Pobox-Relay-ID: 4521C30E-DC73-11E9-BABA-B0405B776F7B-14562987!pb-smtp20.pobox.com Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 20-Sep-2019/19:09 +0300, Ertan K=C3=BC=C3=A7=C3=BCko=C4=9Flu wrote: > >My main usage is to see select results. I have used zenity and a shell script for this. The script uses zenity to present a list of databases. The script assumes you do not need credentials to connect to the database. You could specify a connection string if username/password credentials are needed. After selecting a database, a zenity text input dialog is displayed so that you can enter a command. The script uses psql to run the command, with the --html option to output to an HTML file. It then uses xdg-open t= o launch your default HTML viewer with the file. My browser opens a new tab every time, but I can live with that. The script redisplays the zenity text input box after each command, until you select the Cancel button, use the Escape key, or close the zenity window. It does not check syntax, and it does not report errors. It only provides a quick way to run queries and get the results in a browser. Let me know if you're interested. --=20 Anthony E. Greene