Re: [PERFORM] static virtual columns as result?

2012-07-04 Thread PV
SOLVED: 1) Try remove old functions tsearch, ltree,..., "old" database format 2) Vacuum or rebuild database One could solve the problem. Regards -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpre

Re: [PERFORM] static virtual columns as result?

2012-07-03 Thread PV
El 03/07/12 15:44, Kevin Grittner escribió: You provided too little information to suggest much beyond using JOIN instead of a subquery. Something like: I think that adding new columns to Product , lft and rgt with index should be fast. But does not seem a good design. Tables: #

[PERFORM] static virtual columns as result?

2012-07-03 Thread PV
Hello, I "have" this two tables: Table Cat: id|A|B --+-+- 1|3|5 2|5|8 3|6|9 Table Pr: id|Catid| --+- 1|3 2|2 3|1 I need replace "Catid" column for corresponding values A and B (Table Cat) in Table Pr. Virtual table like this: Table Pr: id|Catid|A|B --+-+-+ 1|3|6|9 2|2|5|8 3|1|3|5 Someth