Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDYz2-000162-FP for pgsql-bugs@arkaria.postgresql.org; Sat, 11 Nov 2017 16:50:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDYz2-0001z1-1k for pgsql-bugs@arkaria.postgresql.org; Sat, 11 Nov 2017 16:50:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eDYz0-0001tT-Q4 for pgsql-bugs@postgresql.org; Sat, 11 Nov 2017 16:50:15 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eDYyy-0006kg-1z for pgsql-bugs@postgresql.org; Sat, 11 Nov 2017 16:50:13 +0000 Received: by mail-wm0-x235.google.com with SMTP id p75so7853258wmg.3 for ; Sat, 11 Nov 2017 08:50:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=JaduWIhAzST4gkVGDriA0Bdmc7eji25ticc0CdrB8YA=; b=NrHRYrG+lwOrhIoGyVpKKtX60K/Ln6lG2xSDoI9hPUqzhwglx1lOK9UkUt9ldERVDW OlQsLwrmCSk+irrn3h2r6Yobn1gYEjN24LFC97JkvUu2z1c2fZ0N1Qgv7F+GI2B4z4N0 kVEnDcAjC9Ro2w4heiIQoEvFlxfFoAxid4DgQNp4q1EL+hpIz/d1Z4WP930rhnOH74/7 HRhPWfq1HPxTWhto1w0aszKu6IANequjaxMrgjZUqF7bvzMunr5RBBIrwUkePzsPnQGy wBfnJweq6aKkENL6LfLDZXeJ+QZtMSu8R4MG8GLQoq7+99CNx2uDdoYnGxKCnDaaxo+z OMQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JaduWIhAzST4gkVGDriA0Bdmc7eji25ticc0CdrB8YA=; b=iuR9bKPZIRd2kaLDrZd/y2RUGVJkucrsd999+nYWZtVIMlnSvwsbKRFvN1Mfvw5a7/ UAOrDpLO6n9yvM/V65W2yw+STdlLxdo/MinDe5J5owTVpm6j8BI0IgznQQICQFUGbjoq zDRQGnC8XynTTObGaJOt18JE9neCwEShvqCAkf7PAbWStKSrv5x78fiUPL11qckd9dmY wek9ShNtNV+62kVX6FwCYRj376LqRB+Gs4li1SnxAQ/rrymNzR3Vf35Kk495WOuUD1gO JTWlBb9Xyhq01mzAK+JZsusAY5l51Y/3u89tX68W+5i00JuBiDGiZ95bN3CT0XJEaQzS 8tGA== X-Gm-Message-State: AJaThX68g06s6hPd25livwBppEwDK9hUrEFKY1lSiVTw6atoztK0EhBw axLq8ZXkZjZzG4kXTqTGBFuiPMSMj/4sLQZRe2jr9T1rn51TKJX12IXQl4ekMwfMocdLsRjKqyW x6QlGxfmbuv7a2NFNYYzCpVbKrqzr1UvAuJC1B/8SDiADJdrHK3cqjIqYF+YydUSkGKjp89j8ZJ 5MkpYg X-Google-Smtp-Source: AGs4zMZF/dWFFajsUwhMBmxCFfUkVhsI5AakTJBsCPg04lteuIrGg+kpq3HdjJ3s0mxqHFNMW1qXFA== X-Received: by 10.80.227.205 with SMTP id c13mr5619536edm.16.1510419010011; Sat, 11 Nov 2017 08:50:10 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id 33sm11798014edt.75.2017.11.11.08.50.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Nov 2017 08:50:09 -0800 (PST) Subject: Re: Help me plz To: pgsql-bugs@postgresql.org References: From: Tomas Vondra Message-ID: <562a23c6-48ad-dd96-a945-bedc442fe077@2ndquadrant.com> Date: Sat, 11 Nov 2017 17:50:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 11/11/2017 11:56 AM, Kotadiya Dhrupesh wrote: > Hello, > > Thanks for update. > > v2=# select id,name,create_date from res_partner where supplier =False > and customer=True and create_date::date <='20116-06-30' order by id desc > limit 2 > ; >     id    |      name      |        create_date          > ----------+----------------+---------------------------- >  13845945 | Faryal Ahmed   | 2017-11-09 13:47:28.063494 >  13845944 | Ahmad Alghamdi | 2017-11-09 13:47:22.831375 > (2 rows) > > > Please look above query. > So what exactly is wrong? Pavel already asked you to explain what you think is wrong with the result, but you are just sending us "look at the query" assuming it's somewhat obvious. David already pointed out one possible issue (fat-fingered query condition), but considering it wasn't there in the first request, I doubt it's the actual issue. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs