[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Миграция mysql->postgersql && unicode



On Tue, 15 Jun 2010 15:18:47 +0300
Игорь Чумак <ichumak2008@gmail.com> wrote:

> Denis Feklushkin пишет:
> 
> >> Можно ли как-нибудь оттрассировать, что программа пытается записать в 
> >> базу?
> >>     
> >
> > запросто
> >
> > /etc/postgresql/8.4/main/postgresql.conf:
> >
> > # это опция "что логгировать?" сейчас она логгирует только statements, меняющие базу:
> > log_statement = 'mod'                   # none, ddl, mod, all
> >
> >   
> >> Мож там в дизайне проблема?
> >>     
> >
> > то что проблема в дизайне это очевидно, имхо )
> >
> >
> >   
> Нда.
> 2010-06-15 13:03:47 EEST LOG:  statement: INSERT INTO 
> Prelude_AdditionalData (_parent_type, _message_ident, _index, type, 
> meaning, data) VALUES('A', 423298,
> 14, 'byte-string', 'payload', 
> E'E\\000\\000:\\206\\225\\000\\000x\\021\\011\\327M\\336\\223\\276P\\373\\177\\257w*\\277h\\000&9\\333A\\002\\205o\\322\\225C\\
> 244\\000\\000\\000\\000\\0008\\000\\000\\000\\001\\000\\000\\000\\010\\000\\000\\000\\000\\000\\000\\000\\000')
> 
> А что это за синтакс такой: E'текст'?


PostgreSQL also accepts "escape" string constants, which are an extension to the SQL standard. An escape string constant is specified by writing the letter E (upper or lower case) just before the opening single quote, e.g., E'foo'. (When continuing an escape string constant across lines, write E only before the first opening quote.) Within an escape string, a backslash character (\) begins a C-like backslash escape sequence, in which the combination of backslash and following character(s) represent a special byte value


Reply to: