dbTalk Databases Forums  

[NOVICE] oids and tsearch2

mailing.database.pgsql-novice mailing.database.pgsql-novice


Discuss [NOVICE] oids and tsearch2 in the mailing.database.pgsql-novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcus Engene
 
Posts: n/a

Default [NOVICE] oids and tsearch2 - 11-14-2005 , 11:33 AM






Hi list.

I have a table as

CREATE TABLE mytable
(
objectid INTEGER PRIMARY KEY NOT NULL
,description TEXT
,idxfti tsvector -- for tsearch2
)
WITHOUT OIDS;

CREATE INDEX mytable_fts ON mytable USING gist(idxfti);

....and the update trigger when description is changed.

I wonder, was it a bad idea to create mytable without oids? Does the
tsearch2 indexing require it? If yes, must I recreate the table or can I
add oids on an existing table?

From the user doc about oids, I haven't really figured out when to use
them or not. So by habit I disable them.

Thanks,
Marcus

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.