Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:49:59+00:00 2026-06-17T21:49:59+00:00

it seems that my server won’t use gin index. I’ve created a new database

  • 0

it seems that my server won’t use gin index.

  1. I’ve created a new database with one table.
  2. I’ve inserted one row as example.
  3. I’ve loaded trigram extension and created gin index using trigrams
  4. But when I check if the index works right I can see it doesn’t
  5. Any ideas?

SQL: http://pastebin.com/1yDQQA1Z

P.S. A day ago I’ve followed a tutorial about trigrams. Basically it was the same like my example above. The table had 2 columns, numeric(5, 0) and character varying (the one with gin trgm index). Query was with like operator using “%” and index was working (I could see Bitmap using in query explain), so I know, my server can use index (and its properly installed).

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:50:01+00:00Added an answer on June 17, 2026 at 9:50 pm

    Don’t test on one row, it is meaningless.

    Here’s an excerpt of the documentation explaining why, in Examining Index Usage:

    Use real data for experimentation. Using test data for setting up
    indexes will tell you what indexes you need for the test data, but
    that is all.

    It is especially fatal to use very small test data sets. While
    selecting 1000 out of 100000 rows could be a candidate for an index,
    selecting 1 out of 100 rows will hardly be, because the 100 rows
    probably fit within a single disk page, and there is no plan that can
    beat sequentially fetching 1 disk page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some trouble with a SQL Server 2005 database that seems like it's
It seems that SQL Server has a fair amount of XML support. Mostly I've
It seems that SQL Server does not accept numbers formatted using any particular locale.
It seems that my Sql Server Full text catalog is not always up to
It seems that using Critical Sections quite a bit in Vista/Windows Server 2008 leads
It seems that WMD-Editor is posting HTML to the server instead of the markdown.
On a SQL Server 2000 system, I have a templog.ldf file that seems to
From what I've read, it seems that $_SERVER['REQUEST_URI'] won't always return query strings properly,
It just seems like something that would be really useful when developing server-side code.
It seems that Rails and Django can both start up the server binding to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.