Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4A68D9FB6FC for ; Wed, 28 Feb 2007 06:33:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 23229-03 for ; Wed, 28 Feb 2007 06:33:07 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id BD6EB9FB4EC for ; Wed, 28 Feb 2007 06:33:05 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so517984nfb for ; Wed, 28 Feb 2007 02:33:04 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=Gq/uOil8h1TCjp1wc0EffWYt9A6PXoNRLtX64ehNub3K2wJVQ3T11c4OOz/8BhXKqstvDBwruR32vW1/6fEeWyd8YDFhsFObiaPlFKuBQHiwoCwmsZELYY7E/ee1j6jehv7EC3uZO1+2O52OB93iXNk18iKv2yIvaSom6nLyst0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=eOUyWvw43EJd2iHaLevgC/+0JlK17O2qS7Qot1g9jd6Nwi3aKbcuIiS9PNBSuHoU5gDv5yTx+es3dmNNhXaYySp4VCPHtzKRvuPvTA3u7iG5tfejth+tds4Bom+RlNFuDh5xPZEAqRv33Qrm+fdkfEXlWWN8VAFkO0UaheQzJWY= Received: by 10.48.48.13 with SMTP id v13mr3328014nfv.1172658784198; Wed, 28 Feb 2007 02:33:04 -0800 (PST) Received: by 10.49.36.19 with HTTP; Wed, 28 Feb 2007 02:33:04 -0800 (PST) Message-ID: <9d91f7aa0702280233r7c91dedav1ddfaffa92877280@mail.gmail.com> Date: Wed, 28 Feb 2007 18:33:04 +0800 From: calendarw To: pgsql-sql@postgresql.org Subject: How to union table without union statement? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22910_309157.1172658784167" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.611 tagged_above=0 required=5 tests=BAYES_20, HTML_10_20, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/286 X-Sequence-Number: 27620 ------=_Part_22910_309157.1172658784167 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I need to combine 10 tables which contain same table structure and join an "other table" to show the latest 200 record, I am join the "other table" first and using union statement to select all record now but the collection time is super slow, how can I improve the collection speed? Thanks. -- Jr. P calendarw ------=_Part_22910_309157.1172658784167 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I need to combine 10 tables which contain same table structure and join an "other table" to show the latest 200 record, I am join the "other table" first and using union statement to select all record now but the collection time is super slow, how can I improve the collection speed?

Thanks.

--
Jr. P
calendarw ------=_Part_22910_309157.1172658784167--