pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
instr
2+ messages / 2 participants
[nested] [flat]

* instr
@ 2017-09-13 13:46  aline.sca@hotmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: aline.sca@hotmail.com @ 2017-09-13 13:46 UTC (permalink / raw)
  To: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.1/static/queries-with.html
Description:

Na documentação mostra uma migração do oracle para o postgresql no qual
utliza a função nativa "instr". Na documentação mostra que esta função
existe no postgresql, porem quando tento utilizar me retorna erro dizendo
que nao existe.

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: instr
@ 2017-09-19 15:41  Euler Taveira <euler@timbira.com.br>
  parent: aline.sca@hotmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Euler Taveira @ 2017-09-19 15:41 UTC (permalink / raw)
  To: aline.sca@hotmail.com; +Cc: pgsql-docs

2017-09-13 10:46 GMT-03:00  <aline.sca@hotmail.com>:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.1/static/queries-with.html
> Description:
>
> Na documentação mostra uma migração do oracle para o postgresql no qual
> utliza a função nativa "instr". Na documentação mostra que esta função
> existe no postgresql, porem quando tento utilizar me retorna erro dizendo
> que nao existe.
>
Aline, esta lista utiliza inglês como língua principal.

Sobre a sua dúvida, a documentação [1] é bem clara quando diz que o
postgres *não* tem tal função mas que você pode criá-la se quiser (há
uma seção [2] com tal implementação em PL/pgSQL).

"Example 42.10 shows how to port a function with OUT parameters and
string manipulation. PostgreSQL does not have a built-in instr
function, but you can create one using a combination of other
functions. In Section 42.12.3 there is a PL/pgSQL implementation of
instr that you can use to make your porting easier."


[1] https://www.postgresql.org/docs/10/static/plpgsql-porting.html
[2] https://www.postgresql.org/docs/10/static/plpgsql-porting.html#plpgsql-porting-appendix


-- 
   Euler Taveira                                   Timbira -
http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-09-19 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 13:46 instr aline.sca@hotmail.com
2017-09-19 15:41 ` Euler Taveira <euler@timbira.com.br>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox