Oi pessoal, tudo bem?
Eu tenho a coluna (seg_table.path_name character varying(255), onde eu
armazeno o caminho do arquivo (pdf ou jpg) no S3bucket.
Exemplo:
> /{s3bucket}/filesuser/client/27801123/attachment/4510/main
>
/{s3bucket}/filesuser/client/27801123/attachment/4510/file
Eu preciso, num INNER JOIN, selecionar bem específico o 'main', talvez algo
assim?
...
FROM path_view n
INNER JOIN seg_table AS s ON s.path_name = substr(n.path_name, char_pos
'/file..' to get /filesuser/client/.../attachment/.../) || 'main'
Mas não estou conseguindo.. poderiam me ajudar com a string? Obrigado!
Patrick.
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral