Re: MySQL interview, no mention of PostgreSQL
От | Neil Conway |
---|---|
Тема | Re: MySQL interview, no mention of PostgreSQL |
Дата | |
Msg-id | 1066419337.580.44.camel@tokyo обсуждение исходный текст |
Ответ на | Re: MySQL interview, no mention of PostgreSQL ("Marc G. Fournier" <scrappy@postgresql.org>) |
Список | pgsql-advocacy |
On Fri, 2003-10-17 at 15:21, Marc G. Fournier wrote: > On Fri, 17 Oct 2003, Neil Conway wrote: > > We do the fork() before we even look at the client's connection packet, > > so I'm sceptical that going through all that trouble really makes us > > significantly more resistant to a DOS attack. > > The point is that its alot faster for the backend to open a text file and > parse that Actually, we don't do that: the file is pre-parsed and already in memory, so we just binary search through it. And yes, I realize that this is somewhat faster than doing a system catalog lookup. I'm just sceptical that the in-memory search is THAT much faster that it's worth worrying about, considering (a) we need to do the fork() regardless, which is expensive (b) the content of the system catalog will almost certainly be in the buffer pool. (The fact that the code in question is (IMHO) rather ugly doesn't add to my sympathy for it...) -Neil
В списке pgsql-advocacy по дате отправления: