Re: Quoting table/column names vs performance
От
Richard Huxton
Тема
Re: Quoting table/column names vs performance
Дата
Msg-id
47FCE565.7070608@archonet.com
Ответ на
Quoting table/column names vs performance (Jozef Ševčík)
Список
Дерево обсуждения
Quoting table/column names vs performance Jozef Ševčík <sevcik@styxsystems.com>
Re: Quoting table/column names vs performance Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: Quoting table/column names vs performance Ivan Sergio Borgonovo <mail@webthatworks.it>
Re: Quoting table/column names vs performance Jozef Ševčík <sevcik@styxsystems.com>
Re: Quoting table/column names vs performance Richard Huxton <dev@archonet.com>
Re: Quoting table/column names vs performance Jozef Ševčík <sevcik@styxsystems.com>
Re: Quoting table/column names vs performance Richard Huxton <dev@archonet.com>
Re: Quoting table/column names vs performance Jozef Ševčík <sevcik@styxsystems.com>
Re: Quoting table/column names vs performance Craig Ringer <craig@postnewspapers.com.au>
Jozef Ševčík wrote: > Hi all, > > I just switched from MS SQL to PostgreSQL on project and have > question about double-quoting names of fields/tables regarding to > performance. If the cost of quoting column-names is a significant part of your query costs, you must have some very fast queries. I would not worry. > In MSSQL I had something like: SELECT Column1,Column2 from MyTable > > In PgSQL I write: SELECT "Column1", "Column2" from "MyTable" > > Which is fine and working, I have no doubt about it. I'm just > guessing if this does not affect performance in any way. I know I may > rename tables/fields to lowercase and avoid double-quotting, but it > double-quotting has no affect on perf. is it worth it ? Or are there > any advantages of using 'non-quoted' identifiers agains double-quoted If you double-quote identifiers when you create them you'll want to double-quote them everywhere they are used. That's OK with a new sytem, but can be awkward if you have a lot of existing code that isn't already quoted. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления
От: Markus Wollny
Дата: