Regarding bytea column in Posgresql - Mailing list pgsql-general

From Deole, Pushkar (Pushkar)
Subject Regarding bytea column in Posgresql
Date
Msg-id 78A4D6BFBAA5BA49A5E94DA00A6A76E353DF1D@AZ-FFEXMB04.global.avaya.com
Whole thread Raw
Responses Re: Regarding bytea column in Posgresql
List pgsql-general

Hi,

 

I have been assigned to a product that uses Postgresql 9.3 as backend database. I am new to postgresql.

The product provides chat functionality between the uses and the completed chats are stored in the database table in a ‘bytea’ column in the form of xml. When I query the data from this column I see xml file with text data. I have couple of queries:

1.       Is ‘bytea’ column intended for storing text data?

2.       Typically a chat can have text data with several special characters (which can be represented in multi bytes), how these characters can be stored in a bytea column and retrieved back properly?

 

Thanks,

Pushkar

pgsql-general by date:

Previous
From: dlefebvre
Date:
Subject: Cannot connect from local network to my postgresql server
Next
From: Bill Moran
Date:
Subject: Re: Regarding bytea column in Posgresql