Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Quoting tab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 15235 of 17602
Post > Topic >>

Re: Quoting table/column names vs performance

by dev@[EMAIL PROTECTED] (Richard Huxton) Apr 9, 2008 at 04:48 PM

Jozef =A9ev=E8=EDk wrote:
> Hi all,
>=20
> 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=20
costs, you must have some very fast queries. I would not worry.

> In MSSQL I had something like: SELECT Column1,Column2 from MyTable
>=20
> In PgSQL I write: SELECT "Column1", "Column2" from "MyTable"
>=20
> 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=20
double-quote them everywhere they are used. That's OK with a new sytem,=20
but can be awkward if you have a lot of existing code that isn't
already=20
quoted.

--=20
   Richard Huxton
   Archonet Ltd

--=20
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 3 Posts in Topic:
Re: Quoting table/column names vs performance
dev@[EMAIL PROTECTED] (R  2008-04-09 16:48:53 
Re: Quoting table/column names vs performance
dev@[EMAIL PROTECTED] (R  2008-04-09 17:56:42 
Re: Quoting table/column names vs performance
craig@[EMAIL PROTECTED]   2008-04-10 01:33:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 18:45:37 CST 2008.