[BUGS] "IpcMemoryCreate: shmget failed" on 2.0.38 (was Re: Bug?)

2000-06-08 Thread Sean Kelly

On Wed, 7 Jun 2000, Tom Lane wrote:

> > IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=144, 
>permission=700
> > My kernel has been compiled with "System V IPC" selected.
> > PostgreSQL 6.5.3 has been compiled and ran on this system.
> 
> Hmm, maybe there are old shmem segments still present from the 6.5.3
> postmaster?  You might need to 'ipcrm' the old ones.  See our ipcclean
> script for help.
> 

Thanks for the advice Tom.  The following happened:

-> ./ipcclean   
ipcclean: nothing removed

-> postmaster -D /home/postgres/data/
IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=144, permission=700
This type of error is usually caused by an improper
shared memory or System V IPC semaphore configuration.
[SNIP: Same as previous message]

Anything else that could solve this?

== Sean.




[BUGS] Re: [HACKERS] Sigh, LIKE indexing is *still* broken in foreignlocales

2000-06-08 Thread Peter Eisentraut

Tom Lane writes:

> Evidently the collation rule is that different accent forms sort the
> same unless the strings would otherwise be considered equal, in which
> case an ordering is assigned to them.

Yes, that's fairly common.

> I am now thinking that maybe we should search for a string that compares
> greater than "fooz" when the prefix is "foo" --- that is, append a 'z'
> to the prefix string.  But I wouldn't be surprised if that fails too
> in some locales.

It most definitely will. sv_SE, no_NO, and hr_HR are the early candidates.
And there's also nothing that says that you can only use LIKE on letters,
Latin letters at that.

The only thing you can really do in this direction is to append the very
last character in the complete collation sequence, if there's a way to
find that out. If there isn't, it might be worth hard-coding a few popular
ones.

> I'm also wondering if the left-hand inequality ('foo' <= any string
> beginning with 'foo') might fail in some locales ... we haven't seen
> it reported but who knows ...

I think that's pretty safe. Shorter strings are always "less than" longer
ones.


-- 
Peter Eisentraut  Sernanders väg 10:115
[EMAIL PROTECTED]   75262 Uppsala
http://yi.org/peter-e/Sweden