Stephen Frost <[EMAIL PROTECTED]> writes: > Unless I've missed something here, disabling the OOM killer doesn't > really solve the problem here.
Well in a way it does. Postgres would get an out-of-memory error from malloc which it would handle properly and the world would be happy. Except not quite, since I think an out of memory error still means that backend exits instead of just that query failing. That means if you have an application running such as apache then all subsequent transactions on that connection fail too, instead of just the transaction that misbehaved. And as the other poster mentioned, having Postgres use up every available byte of memory isn't really very friendly to anything else running on the box. It doesn't seem like a bad idea to have a max_memory parameter that if a backend ever exceeded it would immediately abort the current transaction. That would let an application continue operating normally after getting an error. -- greg ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly