extend('PagerDefault') doesn't call pager_default_initialize My code:

   $num_per_page = 1;

   $query = db_select('redagavimas', 'r')
      -&gt;fields("r");
   $query-&gt;join('dusers', 'd', 'd.id = r.user');
   $query-&gt;join('companies', 'c', 'c.id = r.company');
   $query-&gt;join('documents', 'doc', 'doc.id = r.doc');

   $query-&gt;addField('d', 'name');
   $query-&gt;addField('d', 'surname');
   $query-&gt;addField('c', 'name', 'company');
   $query-&gt;addField('c', 'id', 'companyID');
   $query-&gt;addField('doc', 'name', 'docname');
   $query-&gt;addField('r', 'user', 'did');

   $query-&gt;extend('PagerDefault')-&gt;limit($num_per_page);
   $query-&gt;extend('TableSort')-&gt;orderByHeader($header);

   ....

   $result = $query-&gt;execute();

   ....

     '#suffix' =&gt; theme('pager', array( 'tags' =&gt; array())),


I don't see any pager; If I call somewhere pager_default_initialize(), then I see the pager. What I did wrong?

EDIT :

I try:

echo $query-&gt;extend('PagerDefault')-&gt;limit($num_per_page)-&gt;getCountQuery();


and get query, which return &gt;100 rows.
As documented on the See the Extenders page on drupal.org:


  To use an extender, you must first have a query object. From the query object, the extend() method will return a new object that should be used in place of the query object. For example:


$query = $query-&gt;extend('PagerDefault');



  The above line takes a select query, creates a new PagerDefault query object that contains the original select query, and returns the new object. $query may now be used as if it were the original query object but with additional methods now available.
  
  Note that $query is not altered in place. The new object is returned from extend(), and if it is not saved to a variable it will be lost. For example, the following will not do what you expect:


So, you first line should looks like:

$query = db_select('redagavimas', 'r')-&gt;extend('PagerDefault')-&gt;fields("r");