Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHOp-0005Rb-BY for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 15:42:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHOm-0002xc-9N for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 15:42:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHOl-0002xT-Dk for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 15:42:44 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHOg-0007Vn-Do for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 15:42:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 599535C0191; Mon, 7 Jun 2021 11:42:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 07 Jun 2021 11:42:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=2 rMy5jBbzPAUpVlftaZSW9YW8O8F/13/JURdPlV6FdU=; b=RJkmLUGg8uXzLDTFH fC4XdbAcscxLh4nM51rojn9vs647Itr0LlT1iK5SCfJUGJccJfLEHndl6WMlYeqI 6o81B78oOfLTubn2Z/hteGpoknUijTMu1Odln/yFlkVR4uRPcbNM9DyfuMDdIIh5 ZLUC1Tcn6ketz3FNMwPxkSdsKj/fiCJEIoKcjOaO8Pmvig2hdQhx4RHcbwAlIx44 RRpSSypLSUF8dCNnR0pvMafAZdulmPeniwJMQhCiaE7L4rIAL/HsIR2zGOH9zYcq Am/luUh700Eht5x60ChCJNYfJKmZsDVNEUUZao9W/+I5Fg/9tLDcaKwgMKaqdSRK dCD6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=2rMy5jBbzPAUpVlftaZSW9YW8O8F/13/JURdPlV6F dU=; b=IX1946xI+9CoC8jPW0sksBdFbVf/Dxv7Q0HCkEBt+JXwGr2x+UmR3hODV IXkSO2MUNjboQ2bFJKhkJ28aKHCl951yygOdbflms1dspH1tw+oUnQukqkmKsLOx ivlacb0r+ymw4EztOmTFA6cJFpSXf1LohFKDjLCBKT0KLfbkgqA7igjlKHQLIqJu TQFLv8Yftxg9i++pPn3xf4E4hERKGjsVDIAnmvjBWv+erjYqHNpAR9kFGyfZLmE1 kTC6QQLl+sxEBmbV+xTgJLDagdoBErEBg7gRp7yA61tDrPDbi7sED+znLP7/MU1b /o3oTMf4UVfu7cRnqGuQ6C10EARww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtjedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Jun 2021 11:42:36 -0400 (EDT) Subject: Re: Database issues when adding GUI To: Rich Shepard , pgsql-general@lists.postgresql.org References: <48392c33-d63e-15be-e7de-d7a7c0c2fd80@gmail.com> <34B90F57-654D-4170-A7E9-613EB40A952C@americanefficient.com> From: Adrian Klaver Message-ID: Date: Mon, 7 Jun 2021 08:42:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/7/21 8:32 AM, Rich Shepard wrote: > On Mon, 7 Jun 2021, Philip Semanchuk wrote: > >> I agree with Rich. Permissions, or you’re connecting as the wrong user. >> You might find it helpful to simplify and not use a GUI application until >> you get your connection issues sorted out. A simple command line Python >> app that connects to the database and prints the result of “select * from >> activitytypes limit 1” will enable quick(er) debugging of your connection >> issues. > > Philip, > > I've used the psql shell for years. That's not a GUI. What Philip is suggesting is to use Python only simple script to connect to database and retrieve from table. Something like: import psycopg2 con = psycopg2.connect() cur = con.cursor() cur.execute('select * from activitytypes') rs = cur.fetchall() print(rs) > > bustrac=# select * from activitytypes; >   act_name ------------ >  Phone >  Email >  Fax >  Meeting >  Conference >  Referral >  Called me >  Other > (8 rows) > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com