Re: [GENERAL] array of bytea;

2017-03-17 Thread Tom Lane
Tom DalPozzo writes: > I tried without success INSERT INTO MYTABLE VALUES ('{'\x0011','\x2233'}'); > What's wrong? You've ignored the rules about how to write element values within an array literal: https://www.postgresql.org/docs/current/static/arrays.html#ARRAYS-IO Personally I tend to write a

[GENERAL] array of bytea;

2017-03-17 Thread Tom DalPozzo
Hi, I created a table: CREATE TABLE MYTABLE (DATA BYTEA[]); Now, I'd like to insert some values (a '\x0011' and a '\x2233') but I can't find a right way. I tried without success INSERT INTO MYTABLE VALUES ('{'\x0011','\x2233'}'); What's wrong? Thanks Pupillo