Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKpc1-0008He-0I for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 14:46:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKpbz-0005Rx-Md for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 14:46:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKpby-0005Rl-UK for pgsql-admin@postgresql.org; Mon, 09 Feb 2015 14:46:54 +0000 Received: from mail-yh0-x236.google.com ([2607:f8b0:4002:c01::236]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YKpbv-000553-JZ for pgsql-admin@postgresql.org; Mon, 09 Feb 2015 14:46:53 +0000 Received: by mail-yh0-f54.google.com with SMTP id z6so1543610yhz.13 for ; Mon, 09 Feb 2015 06:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=EUYMO1qYpbEQVSSUj6uycl9YMf7NPhvvebGnctW3zqI=; b=ij42lYl0ZY8Xiw+9J/GGKCl7xXnj6sdanY/ep+8p4xfXGDwJ/GJLPrJFJDRHy7r1zj ojh+opJ7mWgdhkPOawfLl8y4wQ121vMshjhYkzVr/Np/oX+OP0NhA+TpUYWI+Yaqi3SA Nk53o3kN2Ogmc3jq06QOKxoMSwvNqdq/FfGqPUwJGbRQ9EoPp1PLFYKGGfRSLUHvch9J Xcn/IL7O1xfVVgVWvkPFcpzncl9yzQ8pAu2Q621mTIDZLrCoBy0K4cyRXRFf2obeUdvk pYSzRRef6QI+zuJRg4phgN59OJ2TiPgr/fZKeTuRIMKYfM0vbbKtC47gxAFu7Frl0WIm d53w== X-Received: by 10.236.3.101 with SMTP id 65mr6138111yhg.195.1423493209811; Mon, 09 Feb 2015 06:46:49 -0800 (PST) Received: from [192.168.254.3] (h77.89.102.166.static.ip.windstream.net. [166.102.89.77]) by mx.google.com with ESMTPSA id i50sm7641344yhg.41.2015.02.09.06.46.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 06:46:49 -0800 (PST) Message-ID: <54D8C857.9060405@gmail.com> Date: Mon, 09 Feb 2015 09:46:47 -0500 From: John Scalia User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: vjoshi@zetainteractive.com, pgsql-admin@postgresql.org Subject: Re: How to upgrade psql client References: <6658be918d92355be589a80f7b941ff2@mail.gmail.com> In-Reply-To: <6658be918d92355be589a80f7b941ff2@mail.gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 2/9/2015 9:25 AM, Vivekanand Joshi wrote: > Hi Team, > > I want to upgrade my psql client which is version 8.1.23 right now. I am > not been able to see the DDL for the tables using \d option. I have > installed PostgreSQL through source. > > How to upgrade the client? > > ============================ > > postgres=# select version (); > version > -------------------------------------------------------------------------- > ------------------------------------- > PostgreSQL 9.3.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 > 20080704 (Red Hat 4.1.2-44), 64-bit > (1 row) > > =============================== > > psql -U postgres -W > > Welcome to psql 8.1.23 (server 9.3.5), the PostgreSQL interactive > terminal. > > Type: \copyright for distribution terms > \h for help with SQL commands > \? for help with psql commands > \g or terminate with semicolon to execute query > \q to quit > > WARNING: You are connected to a server with major version 9.3, > but your psql client is major version 8.1. Some backslash commands, > such as \d, might not work properly. > > ===================================== > > > Thanks, > Vivek > If you built from source, did it build a psql executable for 9.3.5? And if you built from source and then did a "make install", then you may have the new psql under your bin directory. (I'm only used to centOS and RedHat, which puts these under /usr/pgsql-9.3/bin, My experience is that this is usually done from a source build. -- Jay -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin