Eeek! Major problem after reload with tsearch2

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default Re: Eeek! Major problem after reload with tsearch2

    This is know issue with OIDS.
    You,probably, needed to apply regprocedure_7.4.patch.gz
    patch from [url]http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/[/url]

    Oleg
    On Thu, 3 Feb 2005, Karl Denninger wrote:
    > Ok, I found out what was going on with the tsearch2 module and reloading
    > after an upgrade to 8.0.1 from 7.4.1
    >
    > The data now loads cleanly, and selects are fine.
    >
    > HOWEVER, when I attempt an update, I issue the following SQL command (this
    > table has a tsearch2 vector in it:)
    >
    > update post set invisible='0' where ordinal='2843'
    >
    > And get back:
    >
    > ERROR: cache lookup failed for function 36476 CONTEXT: SQL statement
    > "select lt.tokid, map.dict_name from public.pg_ts_cfgmap as map,
    > public.pg_ts_cfg as cfg, public.token_type( $1 ) as lt where lt.alias =
    > map.tok_alias and map.ts_name = cfg.ts_name and cfg.oid= $2 order by
    > lt.tokid desc;"
    >
    > Aieeee!
    >
    > A reindex did nothing.
    >
    > What did I miss? Looks like there's something missing, but what?!
    >
    > --
    >
    Regards,
    Oleg
    __________________________________________________ ___________
    Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
    Sternberg Astronomical Institute, Moscow University (Russia)
    Internet: [email]oleg@sai.msu.su[/email], [url]http://www.sai.msu.su/~megera/[/url]
    phone: +007(095)939-16-83, +007(095)939-23-83

    ---------------------------(end of broadcast)---------------------------
    TIP 9: the planner will ignore your desire to choose an index scan if your
    joining column's datatypes do not match

    Oleg Bartunov Guest

  2. Similar Questions and Discussions

    1. Problem resolved (tsearch2 inhibiting migration)
      Got it fixed. As it happens, there's an "untsearch2.sql" script in the contrib directory. Removing the transaction block around it allowed it to...
    2. [sfpug] Basic problem installing TSearch2 (full text
      Jon, Are you sure your locale is SQL_ASCII and not en_US? --Josh ---------------------------(end of broadcast)---------------------------...
    3. Basic problem installing TSearch2 (full text search)
      Hi all, I've installed TSearch2 with some success- my table now contains a tsvector field that's indexed and I can run full text queries. ...
    4. NArray indexing order: row major vs column major
      rubyists- am i the only one who finds the current NArray indexing order confusing: irb(main):001:0> na = NArray.to_na a=,] =>...
    5. HELP!!!...major problem
      Please help...I have made a flash movie in 16:9 format (1777px x 1000px) which I need to convert to a format that can be reproduced by a DVD player...
  3. #2

    Default Re: Eeek! Major problem after reload with tsearch2

    On Thu, 3 Feb 2005, Karl Denninger wrote:
    > The patch is in the 8.0.1 version of Tsearch2 already.
    >
    > The problem is that I have a dump from a 7.4.1 database taken with the
    > 8.0.1 pg_dumpall that I need to be able to get back online on 8.0.x.

    you had to apply patch to 7.4.1 db before dumping or use regprocedure_update.sql
    to update your live 7.4.1 database ! pg_dump (pg_dumpall) has nothing with
    the problem. After applying patch and dumping db you have OID-free db and
    should have no problem !
    >
    > Is the only option to find all the functions in the tsearch.sql file, drop
    > them by hand, remove all the tsearch2 index fields, then reload
    > tsearch2.sql and re-create the indices?
    >
    > That's not impossible, but a shizload of work, as there's no good way that
    > I can see to drop all the tsearch2 functions in a single step (e.g. I'd
    > have to go through the tsearch2.sql file individually, find all the
    > entries, drop them, etc.)
    >
    > Another possibility....
    >
    > Does a pg_dumpall dump functions as well? It appears not from the
    > documentation - so if I drop the columns and then dump the database, I
    > should have a "clean" dump without the OID stuff in it.
    >
    > If I then re-init and reload the data, I should then be able to do so
    > without the tsearch2.sql stuff. I can then reload the tsearch2.sql
    > functions and re-create the indices.
    >
    > Sound plausible?
    >
    No, if you have OIDs in db pg_dump* will dump them. Try regprocedure_update.sql
    and read [url]http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/tsearch-V2-intro.html[/url]

    If you have 7.4.1 db running you might go way described earlier.
    > -
    >
    Regards,
    Oleg
    __________________________________________________ ___________
    Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
    Sternberg Astronomical Institute, Moscow University (Russia)
    Internet: [email]oleg@sai.msu.su[/email], [url]http://www.sai.msu.su/~megera/[/url]
    phone: +007(095)939-16-83, +007(095)939-23-83

    ---------------------------(end of broadcast)---------------------------
    TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [email]majordomo@postgresql.org[/email])

    Oleg Bartunov Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139