Re: [GENERAL] 'a' == 'a '

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] 'a' == 'a '
Дата
Msg-id 200510250057.j9P0vHQ18340@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] 'a' == 'a '  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
Dann Corbit wrote:
> Document the collating sequences used for the character types.

Sorry, I don't understand that.  What does it mean?

---------------------------------------------------------------------------


> 
> > -----Original Message-----
> > From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> > Sent: Monday, October 24, 2005 11:01 AM
> > To: Tom Lane
> > Cc: Dann Corbit; Richard_D_Levine@raytheon.com;
> general@postgresql.org;
> > pgsql-hackers@postgresql.org
> > Subject: Re: [GENERAL] [HACKERS] 'a' == 'a '
> > 
> > 
> > Is there any TODO here?
> > 
> >
> ------------------------------------------------------------------------
> --
> > -
> > 
> > Tom Lane wrote:
> > > "Dann Corbit" <DCorbit@connx.com> writes:
> > > > I guess that additional ambiguity arises if you add additional
> spaces
> > to
> > > > the end.  Many database systems solve this by trimming the
> characters
> > > > from the end of the string upon storage and the returned string
> will
> > not
> > > > have any trailing blanks.
> > >
> > > Can you document that?  ISTM that that would effectively make
> char(n)
> > > and varchar(n) exactly equivalent, which is ... um ... a bit stupid.
> > >
> > >             regards, tom lane
> > >
> > > ---------------------------(end of
> broadcast)---------------------------
> > > TIP 9: In versions below 8.0, the planner will ignore your desire to
> > >        choose an index scan if your joining column's datatypes do
> not
> > >        match
> > >
> > 
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman@candle.pha.pa.us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania
> > 19073
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: New timezone data
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: sort_mem statistics ...