Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZPCh-0002MH-9u for pgsql-docs@arkaria.postgresql.org; Thu, 02 Feb 2017 21:46:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZPCg-0007nP-TB for pgsql-docs@arkaria.postgresql.org; Thu, 02 Feb 2017 21:46:06 +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 1cZPCf-0007mP-OK for pgsql-docs@postgresql.org; Thu, 02 Feb 2017 21:46:05 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZPCb-00042c-Js for pgsql-docs@postgresql.org; Thu, 02 Feb 2017 21:46:04 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0E2F42099F; Thu, 2 Feb 2017 16:46:01 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Thu, 02 Feb 2017 16:46:01 -0500 DKIM-Signature: v=1; a=rsa-sha1; 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-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=TKiXbc8maIUkfZSTAX2VdK1s22A=; b=eYZEqyi2D5Aa3LfQjEpa +as3ZU27L66Ps32BpHCV6coFiHjgSxw1pRykzsUwYkkQaRbUjC30xVu3OTvT4omB RaEoCRVbV/9xfIwxWzQZ13Yq8f2EEkkCHR9RiVtBtu5/gBMw+4fFnz2fgTTh8iwh uIu/ZfNecWopY4zJUtu5p24= X-ME-Sender: X-Sasl-enc: fCzmjmROFPDUnRqE2vX6ZelQUllhbrQnpv00Jc0oWRhx 1486071960 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id BA093241D3; Thu, 2 Feb 2017 16:46:00 -0500 (EST) Subject: Re: instr function with negative parameter To: mmalorodova@usgs.gov, pgsql-docs@postgresql.org References: <20170117204926.1434.1030@wrigleys.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 2 Feb 2017 16:46:00 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170117204926.1434.1030@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On 1/17/17 3:49 PM, mmalorodova@usgs.gov wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.4/static/plpgsql-porting.html > Description: > > instr function with negative parameter does not return the same result as in > Oracle > Ex: > select instr('010000101001001','1',-1) from dual What does it return on Oracle, and what does it return on PostgreSQL? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs