Re: BUG: PG do not use index - Mailing list pgsql-bugs
From | |
---|---|
Subject | Re: BUG: PG do not use index |
Date | |
Msg-id | 021d01c88f26$1b7daf10$1200a8c0@kharkov.localhost Whole thread Raw |
In response to | BUG: PG do not use index (<Eugen.Konkov@aldec.com>) |
List | pgsql-bugs |
Ok. thx for answer. When upgrading from 8.0 to 8.3 (http://www.postgresql.org/docs/8.3/interactive/install-upgrading.html) if those error messages are normal? C:\Program Files\PostgreSQL\8.3\bin>psql -d postgres -U root -W -f ../../pg_dump new 2>&1 > c:/restore.log Password for user root: Password for user root: psql:../../pg_dumpnew:15: ERROR: role "postgres" already exists psql:../../pg_dumpnew:17: ERROR: role "root" already exists Password for user root: psql:../../pg_dumpnew:88: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:91: ERROR: ÑÑнкÑÐ¸Ñ public.database_size(name) не ÑÑÑеÑÑÐ²Ñ ÐµÑ psql:../../pg_dumpnew:99: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:102: ERROR: ÑÑнкÑÐ¸Ñ public.pg_database_size(oid) не ÑÑÑÐµÑ ÑвÑÐµÑ psql:../../pg_dumpnew:110: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:113: ERROR: ÑÑнкÑÐ¸Ñ public.pg_dir_ls(text, boolean) не ÑÑ ÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:132: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:135: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_read(text, bigint, big int) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:143: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:146: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_rename(text, text, tex t) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:165: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:168: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_stat(text) не ÑÑÑеÑÑÐ²Ñ ÐµÑ psql:../../pg_dumpnew:176: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:179: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_unlink(text) не ÑÑÑеÑÑ Ð²ÑÐµÑ psql:../../pg_dumpnew:187: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:190: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_write(text, text, bool ean) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:198: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:201: ERROR: ÑÑнкÑÐ¸Ñ public.pg_logdir_ls() не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:209: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:212: ERROR: ÑÑнкÑÐ¸Ñ public.pg_postmaster_starttime() не Ñ ÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:220: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:223: ERROR: ÑÑнкÑÐ¸Ñ public.pg_relation_size(oid) не ÑÑÑÐµÑ ÑвÑÐµÑ psql:../../pg_dumpnew:231: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:234: ERROR: ÑÑнкÑÐ¸Ñ public.pg_reload_conf() не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:242: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:245: ERROR: ÑÑнкÑÐ¸Ñ public.pg_size_pretty(bigint) не ÑÑÑе ÑÑвÑÐµÑ psql:../../pg_dumpnew:253: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:256: ERROR: ÑÑнкÑÐ¸Ñ public.pg_tablespace_size(oid) не ÑÑÑ ÐµÑÑвÑÐµÑ psql:../../pg_dumpnew:264: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:267: ERROR: ÑÑнкÑÐ¸Ñ public.relation_size(text) не ÑÑÑеÑÑв ÑÐµÑ psql:../../pg_dumpnew:969: ERROR: ÑÑнкÑÐ¸Ñ pg_logdir_ls() не ÑÑÑеÑÑвÑÐµÑ Ð¡Ð¢Ð ÐÐÐ 2: SELECT a.filetime, a.filename FROM pg_logdir_ls() a(file... ^ ÐÐÐСÐÐÐÐÐ: No function matches the given name and argument types. You might nee d to add explicit type casts. psql:../../pg_dumpnew:972: ERROR: оÑноÑение "public.pg_logdir_ls" не ÑÑÑеÑÑвÑÐµÑ Password for user root: psql:../../pg_dumpnew:2225: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No suc h file or directory psql:../../pg_dumpnew:2228: ERROR: ÑÑнкÑÐ¸Ñ public.database_size(name) не ÑÑÑеÑÑ Ð²ÑÐµÑ psql:../../pg_dumpnew:2270: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No suc h file or directory psql:../../pg_dumpnew:2273: ERROR: ÑÑнкÑÐ¸Ñ public.pg_database_size(oid) не ÑÑÑе ÑÑвÑÐµÑ psql:../../pg_dumpnew:2281: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2284: ERROR: ÑÑнкÑÐ¸Ñ public.pg_dir_ls(text, boolean) не Ñ ÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2303: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2306: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_read(text, bigint, bi gint) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2314: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2317: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_rename(text, text, te xt) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2336: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2339: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_stat(text) не ÑÑÑеÑÑв ÑÐµÑ psql:../../pg_dumpnew:2347: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2350: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_unlink(text) не ÑÑÑÐµÑ ÑвÑÐµÑ psql:../../pg_dumpnew:2358: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2361: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_write(text, text, boo lean) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2369: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2372: ERROR: ÑÑнкÑÐ¸Ñ public.pg_logdir_ls() не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2380: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2383: ERROR: ÑÑнкÑÐ¸Ñ public.pg_postmaster_starttime() не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2391: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No suc h file or directory psql:../../pg_dumpnew:2394: ERROR: ÑÑнкÑÐ¸Ñ public.pg_relation_size(oid) не ÑÑÑе ÑÑвÑÐµÑ psql:../../pg_dumpnew:2402: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No such file or directory psql:../../pg_dumpnew:2405: ERROR: ÑÑнкÑÐ¸Ñ public.pg_reload_conf() не ÑÑÑеÑÑвÑе Ñ psql:../../pg_dumpnew:2413: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No suc h file or directory psql:../../pg_dumpnew:2416: ERROR: ÑÑнкÑÐ¸Ñ public.pg_size_pretty(bigint) не ÑÑÑ ÐµÑÑвÑÐµÑ psql:../../pg_dumpnew:2424: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No suc h file or directory psql:../../pg_dumpnew:2427: ERROR: ÑÑнкÑÐ¸Ñ public.pg_tablespace_size(oid) не ÑÑ ÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:2435: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No suc h file or directory psql:../../pg_dumpnew:2438: ERROR: ÑÑнкÑÐ¸Ñ public.relation_size(text) не ÑÑÑеÑÑ Ð²ÑÐµÑ psql:../../pg_dumpnew:3505: ERROR: ÑÑнкÑÐ¸Ñ pg_logdir_ls() не ÑÑÑеÑÑвÑÐµÑ Ð¡Ð¢Ð ÐÐÐ 2: SELECT a.filetime, a.filename FROM pg_logdir_ls() a(file... ^ ÐÐÐСÐÐÐÐÐ: No function matches the given name and argument types. You might nee d to add explicit type casts. psql:../../pg_dumpnew:3508: ERROR: оÑноÑение "public.pg_logdir_ls" не ÑÑÑеÑÑвÑе Ñ psql:../../pg_dumpnew:9213484: ERROR: ÑзÑк "plpgsql" Ñже ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213495: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:9213498: ERROR: ÑÑнкÑÐ¸Ñ public.database_size(name) не ÑÑÑ ÐµÑÑвÑÐµÑ psql:../../pg_dumpnew:9213506: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:9213509: ERROR: ÑÑнкÑÐ¸Ñ public.pg_database_size(oid) не Ñ ÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213517: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213520: ERROR: ÑÑнкÑÐ¸Ñ public.pg_dir_ls(text, boolean) н е ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213539: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213542: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_read(text, bigint, bigint) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213550: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213553: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_rename(text, text, text) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213572: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213575: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_stat(text) не ÑÑÑе ÑÑвÑÐµÑ psql:../../pg_dumpnew:9213583: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213586: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_unlink(text) не ÑÑ ÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213594: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213597: ERROR: ÑÑнкÑÐ¸Ñ public.pg_file_write(text, text, boolean) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213605: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213608: ERROR: ÑÑнкÑÐ¸Ñ public.pg_logdir_ls() не ÑÑÑеÑÑÐ²Ñ ÐµÑ psql:../../pg_dumpnew:9213616: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213619: ERROR: ÑÑнкÑÐ¸Ñ public.pg_postmaster_starttime() не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213627: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:9213630: ERROR: ÑÑнкÑÐ¸Ñ public.pg_relation_size(oid) не Ñ ÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213638: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/admin": No s uch file or directory psql:../../pg_dumpnew:9213641: ERROR: ÑÑнкÑÐ¸Ñ public.pg_reload_conf() не ÑÑÑеÑÑ Ð²ÑÐµÑ psql:../../pg_dumpnew:9213649: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:9213652: ERROR: ÑÑнкÑÐ¸Ñ public.pg_size_pretty(bigint) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213660: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:9213663: ERROR: ÑÑнкÑÐ¸Ñ public.pg_tablespace_size(oid) не ÑÑÑеÑÑвÑÐµÑ psql:../../pg_dumpnew:9213671: ERROR: Ð½ÐµÑ Ð´Ð¾ÑÑÑпа к ÑÐ°Ð¹Ð»Ñ "$libdir/dbsize": No such file or directory psql:../../pg_dumpnew:9213674: ERROR: ÑÑнкÑÐ¸Ñ public.relation_size(text) не ÑÑÑ ÐµÑÑвÑÐµÑ ----- Original Message ----- From: "Tomasz Ostrowski" <tometzky@batory.org.pl> To: <Eugen.Konkov@aldec.com> Cc: <pgsql-bugs@postgresql.org> Sent: Wednesday, March 26, 2008 11:08 AM Subject: Re: [BUGS] BUG: PG do not use index > On 2008-03-26 09:41, Eugen.Konkov@aldec.com wrote: > >> 5. explain select count(*) from akh_testing_result >> Aggregate (cost=206372.95..206372.95 rows=1 width=0) >> -> Seq Scan on akh_testing_result (cost=0.00..184804.56 rows=8627356 >> width=0) > > You will always get seq scan when you select count(*) without where: > http://sql-info.de/en/postgresql/postgres-gotchas.html#1_7 > >> select max(id) from akh_testing_result >> 8817173 >> I will try to update from 8.0 to 8.3 > > This will help with select max(id). An update is recommended anyway. And > it is required if you are using Windows, as 8.0 is not supported on > Windows anymore. > > Regards > Tometzky > -- > ...although Eating Honey was a very good thing to do, there was a > moment just before you began to eat it which was better than when you > were... > Winnie the Pooh >
pgsql-bugs by date: