Explain plan on a Select query - Mailing list pgsql-admin

From John Scalia
Subject Explain plan on a Select query
Date
Msg-id 83029EBF-241B-499B-881A-9057399DC67B@gmail.com
Whole thread Raw
Responses Re: Explain plan on a Select query  (MichaelDBA <MichaelDBA@sqlexec.com>)
Re: Explain plan on a Select query  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-admin
I’m a bit confused on an explain plan I just generated for a select statement. The plan’s first line begins with the
word“Append” followed by the usual (cost....) data. What in the world is an Append doing here? I’ve recently performed
anotheranalyze on the table, btw.  

Also, the query does not seem to be using an index, as the explain shows a pair of sequential scans, speaking of which,
thesecond sequential scan shows it’s on a table, called <table>_test. Which is a little strange, considering that does
notexist. 

The query’s where clause is on a varchar(25) field. And that field has both a btree index and a trigram index on it.
I’vetried using where =, like, and ~ in order to see if I can get it to use an index. All attempts continue to say
sequentialscan. 
—
Jay
>
Sent from my iPad


pgsql-admin by date:

Previous
From: Shrikant Bhende
Date:
Subject: Re: Exclude all child tables during while taking dump
Next
From: MichaelDBA
Date:
Subject: Re: Explain plan on a Select query