-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffc3e41
commit d8b36d1
Showing
9 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
DROP TABLE IF EXISTS irclog; | ||
CREATE TABLE irclog ( | ||
id SERIAL, | ||
channel VARCHAR(30), | ||
nick VARCHAR(40), | ||
opcode VARCHAR(20), | ||
timestamp INT, | ||
line TEXT, | ||
oper_nick VARCHAR(40), | ||
payload TEXT, | ||
PRIMARY KEY(id) | ||
); | ||
|
||
CREATE INDEX irclog_channel_timestamp_index ON irclog (channel, timestamp); | ||
CREATE INDEX irclog_channel_opcode_index ON irclog (channel, opcode); | ||
CREATE INDEX irclog_channel_nick_index ON irclog (channel, nick); | ||
CREATE INDEX irclog_fulltext_index ON irclog | ||
USING gin(to_tsvector('english', nick || ' ' || line)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters