with a very simple table like this
create table matpath (
obj varchar primary key,
path ltree
);
I'm trying to get run the following query :
select path || obj from matpath;
but it doesn't work, I get syntax error at position 8
It works if I use a literal text
select path || 'sometext' from matpath;
I suspect I need to cast obj to something but I can't figure out what it need to be.
I tried varchar
, text
, ltree
EDIT: I'm on postgresql 11.1