Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsWzR-0000ym-5d for pgsql-sql@arkaria.postgresql.org; Thu, 14 Sep 2017 16:27:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsWzQ-0005hu-HK for pgsql-sql@arkaria.postgresql.org; Thu, 14 Sep 2017 16:27:44 +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 1dsWzQ-0005hk-3D for pgsql-sql@postgresql.org; Thu, 14 Sep 2017 16:27:44 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsWzN-0003pc-Gr for pgsql-sql@postgresql.org; Thu, 14 Sep 2017 16:27:43 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 2A07F85FFF8A for ; Thu, 14 Sep 2017 09:27:40 -0700 (MST) Date: Thu, 14 Sep 2017 09:27:40 -0700 (MST) From: srilinux To: pgsql-sql@postgresql.org Message-ID: <1505406460169-0.post@n3.nabble.com> In-Reply-To: References: <1505404687156-0.post@n3.nabble.com> Subject: Re: Query is executing but giving error when using with shell scripting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Did not help /usr/bin/psql -U postgres -d coba1 -c "select name from users where Date > current_date - 30;"` same error -- Sent from: http://www.postgresql-archive.org/PostgreSQL-sql-f2142323.html -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql