Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehKt0-0004Pg-Tu for pgsql-general@arkaria.postgresql.org; Thu, 01 Feb 2018 19:51:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehKsz-00078H-Jh for pgsql-general@arkaria.postgresql.org; Thu, 01 Feb 2018 19:51:05 +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_2) (envelope-from ) id 1ehKsz-000787-C3 for pgsql-general@lists.postgresql.org; Thu, 01 Feb 2018 19:51:05 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehKsq-0004UY-5b for pgsql-general@postgresql.org; Thu, 01 Feb 2018 19:51:04 +0000 Received: from [192.168.1.8] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 3B617962 for ; Thu, 1 Feb 2018 11:50:51 -0800 (PST) Received: from c-67-170-3-120.hsd1.wa.comcast.net ([67.170.3.120] helo=[192.168.1.8]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 1 Feb 2018 11:50:50 -0800 To: "Psql_General (E-mail)" From: "Joshua D. Drake" Subject: What is your psql tip? Organization: Command Prompt, Inc. Message-ID: <19821dd8-b6e7-f743-b91f-55e89bf183e1@commandprompt.com> Date: Thu, 1 Feb 2018 11:50:50 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-14651-00765 X-Assp-Session: 7F6C9518D340 (mail 1) X-Assp-Original-Subject: What is your psql tip? X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Folks, So today I was digging into the backend of PostgresConf.Org which runs on a highly modified version of OSEM (which is an awesome conference platform). I was very quickly losing my mind because the content in the public schema did not match what I was seeing on the website. I checked connection strings, looked for other databases in the cluster and I even checked to see if there was another version of PostgreSQL running. For the life of me, I couldn't figure out where the heck the data went. So here is my psql tip: Remember \dn .... My problem was that the latest version of the app actually runs within a schema titled postgresconf vs public. Of course what is worse is I remember requesting that to happen. That said, that is my psql tip for the day, remember to check things like \dn if you don't recall exactly where you may have put something! Jolly Good, JD -- Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc PostgreSQL centered full stack support, consulting and development. Advocate: @amplifypostgres || Learn: https://postgresconf.org ***** Unless otherwise stated, opinions are my own. *****