Re: Altering column type from text to bytea

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Altering column type from text to bytea
Дата
Msg-id CAHyXU0xxCe8QUB3xNTS5aFKHLtigZCXQVu1KoXcm9_z86jp6qA@mail.gmail.com
обсуждение исходный текст
Ответ на Altering column type from text to bytea  (Alexander Reichstadt <lxr@mac.com>)
Список pgsql-general
On Wed, Mar 21, 2012 at 2:56 PM, Alexander Reichstadt <lxr@mac.com> wrote:
Hi,

when trying to change a text column to bytea I am getting the following error:

SQL error:

ERROR:  column "comment" cannot be cast to type bytea

In statement:
ALTER TABLE "public"."persons" ALTER COLUMN "comment" TYPE bytea


TRY ALTER TYPE ...USING using either direct cast or encode() function.

Please don't post emails in HTML format, thanks!

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Large Databases redux
Следующее
От: Rory Campbell-Lange
Дата:
Сообщение: Server choice for small workload : raptors or SSD?