"FERREIRA William (COFRAMI)" <william.ferreira@airbus.com> writes:
> but the CREATE_XML_FILE doesn't display 'totototototototototot' but
> HASH(0xf03fa4)....
I think what you get back from spi_exec_query is always going to be
a hash, even if it contains only one field. So you need to pick out
the field value.
regards, tom lane