Re: [HACKERS] WIP: Collecting statistics on CSV file data

2011-12-14 Thread Etsuro Fujita
(2011/12/14 15:34), Shigeru Hanada wrote: (2011/12/13 22:00), Etsuro Fujita wrote: Thank you for your effectiveness experiments and proposals for improvements. I updated the patch according to your proposals. Attached is the updated version of the patch. I think this patch could be marked

Re: [HACKERS] Patch for removng unused targets

2013-06-18 Thread Etsuro Fujita
the same check in the planner? I've created a patch using this approach. I've rebased the above patch against the latest head. Could you review the patch? If you have no objection, I'd like to mark the patch ready for committer. Thanks, Best regards, Etsuro Fujita unused-targets-20130618.patch

Re: [HACKERS] Patch for removng unused targets

2013-06-18 Thread Etsuro Fujita
attached the patch. Thanks, Best regards, Etsuro Fujita unused-targets-20130618-2.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Patch for removng unused targets

2013-06-18 Thread Etsuro Fujita
Hi Alexander, Thank you for the check! I marked the patch ready for committer. Best regards, Etsuro Fujita From: Alexander Korotkov [mailto:aekorot...@gmail.com] Sent: Wednesday, June 19, 2013 1:26 AM To: Etsuro Fujita Cc: Tom Lane; pgsql-hackers Subject: Re: [HACKERS] Patch

Re: [HACKERS] Patch for removng unused targets

2013-06-19 Thread Etsuro Fujita
the removability check in adjust_targetlist() so that the resjunk column is not used in GROUP BY, DISTINCT ON and *window PARTITION/ORDER BY*, besides ORDER BY. No? I am open to any comments. Thanks, Best regards, Etsuro Fujita From: Hitoshi Harada [mailto:umi.tan...@gmail.com] Sent

Re: [HACKERS] Patch for removng unused targets

2013-06-20 Thread Etsuro Fujita
From: Hitoshi Harada [mailto:umi.tan...@gmail.com] I guess the patch works fine, but what I'm saying is it might be limited to small use cases. Another instance of this that I can think of is ORDER BY clause of window specifications, which you may want to remove from the target list as

Re: [HACKERS] Patch for removng unused targets

2013-06-21 Thread Etsuro Fujita
From: Hitoshi Harada [mailto:umi.tan...@gmail.com] I tried several ways but I couldn't find big problems. Small typo: s/rejunk/resjunk/ Thank you for the review. Attached is an updated version of the patch. Thanks, Best regards, Etsuro Fujita unused-targets-20130621.patch Description

Re: [HACKERS] Patch for removng unused targets

2013-07-02 Thread Etsuro Fujita
From: Alvaro Herrera [mailto:alvhe...@2ndquadrant.com] Etsuro Fujita escribió: From: Hitoshi Harada [mailto:umi.tan...@gmail.com] I tried several ways but I couldn't find big problems. Small typo: s/rejunk/resjunk/ Thank you for the review. Attached is an updated version

Re: [HACKERS] Patch: clean up addRangeTableEntryForFunction

2013-07-03 Thread Etsuro Fujita
with Robert. Sorry for the delay in my review. Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Typo fix in bufmgr.c

2013-07-31 Thread Etsuro Fujita
Attached is a small typo fix patch. Thanks, Best regards, Etsuro Fujita typofix-20130731.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Patch for removng unused targets

2013-08-04 Thread Etsuro Fujita
it to be aware of the cost implications though, at least for grouping_planner's choices. +1 for improving KNNGist-style queries. Sorry for the late response. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your

Re: [HACKERS] query_planner() API change

2013-08-05 Thread Etsuro Fujita
to create a dummy RelOptInfo representing an empty set of relations, which is a bit weird but probably not too unreasonable when all's said and done. I think this is reasonable. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes

Re: [HACKERS] query_planner() API change

2013-08-05 Thread Etsuro Fujita
/message-id/14993.1354552...@sss.pgh.pa.us Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] query_planner() API change

2013-08-05 Thread Etsuro Fujita
to locate the thread based on this description, but couldn't locate it. Please see http://www.postgresql.org/message-id/6543.1375470...@sss.pgh.pa.us Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] WITH ORDINALITY planner improvements

2013-08-12 Thread Etsuro Fujita
of processing for EquivalenceClasses and PathKeys). Thanks, Best regards, Etsuro Fujita ordinality-path-20130813.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] 9.3 release notes suggestions

2013-08-13 Thread Etsuro Fujita
attached a patch. Thanks, Best regards, Etsuro Fujita REL9_3_BETA2_release.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Incorrect information in src/backend/optimizer/README

2013-08-14 Thread Etsuro Fujita
ISTM the README contains incorrect information and requires revision to reflect the current code. Please find attached a patch. ISTM the patch needs to be applied to all active branches. Thanks, Best regards, Etsuro Fujita optimizer-readme.patch Description: Binary data -- Sent via pgsql

Re: [HACKERS] Incorrect information in src/backend/optimizer/README

2013-08-14 Thread Etsuro Fujita
From: Tom Lane [mailto:t...@sss.pgh.pa.us] Etsuro Fujita fujita.ets...@lab.ntt.co.jp writes: ISTM the README contains incorrect information and requires revision to reflect the current code. Please find attached a patch. ISTM the patch needs to be applied to all active branches

Re: [HACKERS] WITH ORDINALITY planner improvements

2013-08-15 Thread Etsuro Fujita
I wrote: I've reworked on the patch. Attached is an updated version of the patch. In that version the code for the newly added function build_function_pathkeys() has been made more simple by using the macro INTEGER_BTREE_FAM_OID. Thanks, Best regards, Etsuro Fujita ordinality-path-20130815

Re: [HACKERS] 9.3 release notes suggestions

2013-08-18 Thread Etsuro Fujita
From: 'Bruce Momjian' [mailto:br...@momjian.us] On Tue, Aug 13, 2013 at 05:59:05PM +0900, Etsuro Fujita wrote: Thanks for the many suggestions on improving the 9.3 release notes. There were many ideas I would have never thought of. Please keep the suggestions coming. One

[HACKERS] Typo fix in spgtextproc.c

2013-09-17 Thread Etsuro Fujita
I ran into a typo. Attached is a patch. Thanks, Best regards, Etsuro Fujita typofix-20130917.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Docs fix in advanced.sgml

2013-09-17 Thread Etsuro Fujita
I think the document in advanced.sgml should be corrected, though I might misunderstand the rules of usage. Attached is a patch. Thanks, Best regards, Etsuro Fujita docsfix-20130917.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

Re: [HACKERS] Patch for fast gin cache performance improvement

2013-09-26 Thread Etsuro Fujita
, this patch inserts new entries into the pending list temporarily and immediately moves them to the main GIN data structure using ginInsertCleanup(). Am I right? If so, that is obviously inefficient. Sorry for the delay. Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql

Re: [HACKERS] Patch for fast gin cache performance improvement

2013-09-27 Thread Etsuro Fujita
to update performance for the fast update technique set this parameter to a large value, users that give weight not only to update performance but to search performance set this parameter to a small value. What do you think about this? Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers

Re: [HACKERS] Patch for fast gin cache performance improvement

2013-10-10 Thread Etsuro Fujita
. So I'd like to mark this patch as Returned with Feedback. Is it OK? Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Document update in alter_foreign_data_wrapper.sgml

2013-10-25 Thread Etsuro Fujita
Hi, ISTM the document in alter_foreign_data_wrapper.sgml and the comment in foreigncmds.c should be updated. Please find attached a patch. Thanks, Best regards, Etsuro Fujita fdw-doc-update.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org

Re: [HACKERS] Document update in alter_foreign_data_wrapper.sgml

2013-10-28 Thread Etsuro Fujita
, Best regards, Etsuro Fujita fdw-doc-update-2.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-10-31 Thread Etsuro Fujita
=0) (actual time=22.821..22.821 rows=100047 loops=1) Index Cond: ((col2 = 0.01::double precision) AND (col2 = 0.02::double precision)) Total runtime: 1129.334 ms (7 rows) Comments welcome. Thanks, Best regards, Etsuro Fujita explain-bitmapscan-20131031.patch Description: Binary data

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-11-01 Thread Etsuro Fujita
. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Improve code in tidbitmap.c

2013-11-08 Thread Etsuro Fujita
Hi, ISTM the code in tidbitmap.c should be improved. Patch attached. I think this patch increases the efficiency a bit. Thanks, Best regards, Etsuro Fujita diff --git a/src/backend/nodes/tidbitmap.c b/src/backend/nodes/tidbitmap.c index 3ef0112..43628ac 100644 --- a/src/backend

Re: [HACKERS] Improve code in tidbitmap.c

2013-11-14 Thread Etsuro Fujita
a bit efficiently. I'll add the patch to the 2013-11 CF. Any comments are welcome. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Get more from indices.

2013-11-20 Thread Etsuro Fujita
. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Get more from indices.

2013-11-22 Thread Etsuro Fujita
, I'd like to look at this version of the patch more closely, then. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-11-25 Thread Etsuro Fujita
From: Amit Khandekar [mailto:amit.khande...@enterprisedb.com] On 1 November 2013 16:32, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: From: Fujii Masao [mailto:masao.fu...@gmail.com] I'm not sure if it's good idea to show the number of the fetches because it seems difficult to tune

Re: [HACKERS] Get more from indices.

2013-11-25 Thread Etsuro Fujita
, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-11-26 Thread Etsuro Fujita
Amit Khandekar wrote: On 25 November 2013 13:37, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: So, my question is, we should show the number of exact/lossy pages in a TIDBitmap, not the number of these pages that has been fetched in the bitmap heap scan? Yes, I agree that rather than

Re: [HACKERS] Get more from indices.

2013-11-27 Thread Etsuro Fujita
). Understood. Thank you for the detailed information. But I'm not sure it's worth complicating the code. What use cases are you thinking? Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] Get more from indices.

2013-11-27 Thread Etsuro Fujita
as are user attributes because that makes the code more simple. Yes, as you mention, it's not necessarily guaranteed that system attributes have the uniqueness property in general, but that's another problem. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Get more from indices.

2013-11-28 Thread Etsuro Fujita
is more complicated than what the patch really does, I've simplified the patch. Attached is an updated version of the patch. Could you review the patch? Thanks, Best regards, Etsuro Fujita pathkey_and_uniqueindx_v6_20131128.patch Description: Binary data -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Get more from indices.

2013-12-03 Thread Etsuro Fujita
I wrote: I've modified the patch to work in such a way. Also, as ISTM the patch is more complicated than what the patch really does, I've simplified the patch. I've revised the patch a bit. Please find attached the patch. Thanks, Best regards, Etsuro Fujita

Re: [HACKERS] Get more from indices.

2013-12-05 Thread Etsuro Fujita
the all-or-nothing decision. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Get more from indices.

2013-12-05 Thread Etsuro Fujita
. So, I modified the patch to do the all-or-nothing decision. Here I mean the optimality for use in merge joins. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-12-06 Thread Etsuro Fujita
on the inside of a nestloop join. For memory usage and desired memory I think the maximum values would be fine.) I re-wish to know your opinion. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-12-08 Thread Etsuro Fujita
Robert Haas wrote: On Fri, Dec 6, 2013 at 5:02 AM, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: Though at first I agreed on this, while working on this I start to think information about (2) is enough for tuning work_mem. Here are examples using a version under development, where

Re: [HACKERS] Get more from indices.

2013-12-09 Thread Etsuro Fujita
Kyotaro HORIGUCHI wrote: I'm convinced of the validity of your patch. I'm satisfied with it. Thank you. Thank you for the reply. Then, if there are no objections of others, I'll mark this as Ready for Committer. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Get more from indices.

2013-12-10 Thread Etsuro Fujita
I wrote: Kyotaro HORIGUCHI wrote: I'm convinced of the validity of your patch. I'm satisfied with it. Then, if there are no objections of others, I'll mark this as Ready for Committer. Done. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-12-13 Thread Etsuro Fujita
) - Bitmap Index Scan on demo_col2_idx (cost=0.00..2047.71 rows=97528 width=0) (actual time=25.884..25.884 rows=99833 loops=1) Index Cond: ((col2 = 0.01::double precision) AND (col2 = 0.02::double precision)) Total runtime: 1687.047 ms (8 rows) Thanks, Best regards, Etsuro Fujita explain

[HACKERS] Minor comment improvement

2013-12-13 Thread Etsuro Fujita
This is a small patch a bit improving a comment in src/backend/commands/copy.c. Thanks, Best regards, Etsuro Fujita copy-comment.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

[HACKERS] Fix typo in src/backend/utils/mmgr/README

2013-12-23 Thread Etsuro Fujita
This is a small patch to fix a typo in src/backend/utils/mmgr/README. Thanks, Best regards, Etsuro Fujita typofix.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [HACKERS] Fix typo in src/backend/utils/mmgr/README

2013-12-25 Thread Etsuro Fujita
Peter Eisentraut wrote: On 12/24/13, 1:33 AM, Etsuro Fujita wrote: This is a small patch to fix a typo in src/backend/utils/mmgr/README. I don't think that change is correct. I've fixed the patch, though that might be still wrong. I'm not a native English speaker ;). Please find attached

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2013-12-26 Thread Etsuro Fujita
. Attached is a new version of the patch, which shows only fetch block information and memory usage information. I'll add this to the upcoming CF. Thanks, Best regards, Etsuro Fujita explain-bitmapscan-20131227.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql

Re: [HACKERS] Get more from indices.

2014-01-06 Thread Etsuro Fujita
Tom Lane wrote: Etsuro Fujita fujita.ets...@lab.ntt.co.jp writes: [ pathkey_and_uniqueindx_v7_20131203.patch ] I started to look at this patch. I don't understand the reason for the foreach loop in index_pathkeys_are_extensible (and the complete lack of comments in the patch isn't helping

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2014-01-06 Thread Etsuro Fujita
*/ if (a-nentries == 0) return; *** Sorry for the delay. Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Get more from indices.

2014-01-06 Thread Etsuro Fujita
be a overdone. The following modification to v7 does this. It seems to me that this would be reasonable at least as the first step and that it would be better to leave more close checking for future work. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2014-01-07 Thread Etsuro Fujita
Robert Haas wrote: On Mon, Jan 6, 2014 at 9:40 PM, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: Thank you for taking time to look at this patch. The peak memory usage for the discarded bitmap *can* be reflected in the number displayed for the bitmap heap scan by the following code

Re: [HACKERS] Show lossy heap block info in EXPLAIN ANALYZE for bitmap heap scan

2014-01-09 Thread Etsuro Fujita
find attached a patch. Thanks, Best regards, Etsuro Fujita explain-bitmapscan-20140110.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] GIN improvements part 1: additional information

2014-01-13 Thread Etsuro Fujita
. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Comment typo in src/include/access/gin_private.h

2014-01-13 Thread Etsuro Fujita
I ran into a typo in src/include/access/gin_private.h. Patch attached. Thanks, Best regards, Etsuro Fujita gin_private.h-typo.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org

[HACKERS] [Review] inherit support for foreign tables

2014-01-23 Thread Etsuro Fujita
at this patch more closely. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [Review] inherit support for foreign tables

2014-01-26 Thread Etsuro Fujita
(2014/01/25 11:27), Shigeru Hanada wrote: 2014/1/23 Etsuro Fujita fujita.ets...@lab.ntt.co.jp: Shigeru Hanada wrote: Though this would be debatable, in current implementation, constraints defined on a foreign table (now only NOT NULL and CHECK are supported) are not enforced during INSERT

Re: [HACKERS] inherit support for foreign tables

2014-01-26 Thread Etsuro Fujita
not. I'd like to vote for the idea of silently forcing any constraints on a foreign-table into assertion mode. No new syntax and better documentation. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription

Re: [HACKERS] inherit support for foreign tables

2014-01-27 Thread Etsuro Fujita
(ie ATSimpleRecursion()) should be modified for the ALTER COLUMN SET STORAGE case. I just wanted to quickly tell you this for you to take time to consider. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your

Re: [HACKERS] inherit support for foreign tables

2014-01-27 Thread Etsuro Fujita
(2014/01/28 0:55), Atri Sharma wrote: On 27-Jan-2014, at 21:03, David Fetter da...@fetter.org wrote: On Mon, Jan 27, 2014 at 05:06:19PM +0900, Etsuro Fujita wrote: Hi Hanada-san, While still reviwing this patch, I feel this patch has given enough consideration to interactions with other

Re: [HACKERS] [Review] inherit support for foreign tables

2014-01-28 Thread Etsuro Fujita
(2014/01/27 21:49), Shigeru Hanada wrote: 2014-01-27 Etsuro Fujita fujita.ets...@lab.ntt.co.jp: (2014/01/25 11:27), Shigeru Hanada wrote: Yeah, the consistency is essential for its ease of use. But I'm not sure that inherited stats ignoring foreign tables is actually useful for query

Re: [HACKERS] [Review] inherit support for foreign tables

2014-01-30 Thread Etsuro Fujita
(2014/01/28 22:01), Etsuro Fujita wrote: (2014/01/27 21:49), Shigeru Hanada wrote: Is it too big change that making ANALYZE command to handle foreign tables too even if no table name was specified? IIRC, performance issue was the reason to exclude foreign tables from auto-analyze processing

Re: [HACKERS] WITH ORDINALITY planner improvements

2014-02-02 Thread Etsuro Fujita
(2014/02/01 8:01), Tom Lane wrote: Bruce Momjian br...@momjian.us writes: On Thu, Aug 15, 2013 at 07:25:17PM +0900, Etsuro Fujita wrote: Attached is an updated version of the patch. In that version the code for the newly added function build_function_pathkeys() has been made more simple

Re: [HACKERS] inherit support for foreign tables

2014-02-02 Thread Etsuro Fujita
* INTO local_table FROM foreign_table did create a new local table of columns having the storage types associated with those of a foreign table? Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] inherit support for foreign tables

2014-02-04 Thread Etsuro Fujita
(2014/02/04 20:56), Robert Haas wrote: On Sun, Feb 2, 2014 at 10:15 PM, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: Allowing ALTER COLUMN SET STORAGE on foreign tables would make sense if for example, SELECT * INTO local_table FROM foreign_table did create a new local table of columns

Re: [HACKERS] inherit support for foreign tables

2014-02-07 Thread Etsuro Fujita
Hi Hanada-san, Sorry for the delay. (2014/01/30 14:01), Shigeru Hanada wrote: 2014-01-27 Etsuro Fujita fujita.ets...@lab.ntt.co.jp: While still reviwing this patch, I feel this patch has given enough consideration to interactions with other commands, but found the following incorrect

Re: [HACKERS] inherit support for foreign tables

2014-02-10 Thread Etsuro Fujita
(2014/02/07 21:31), Etsuro Fujita wrote: So, I've modified the patch so that we continue to disallow SET STORAGE on a foreign table *in the same manner as before*, but, as your patch does, allow it on an inheritance hierarchy that contains foreign tables, with the semantics that we

[HACKERS] Rowcounts marked by create_foreignscan_path()

2014-02-17 Thread Etsuro Fujita
Why does create_foreignscan_path() not set the rowcounts based on ParamPathInfo when the path is a parameterized path? Please find attached a patch. Thanks, Best regards, Etsuro Fujita *** a/src/backend/optimizer/util/pathnode.c --- b/src/backend/optimizer/util/pathnode.c

Re: [HACKERS] Rowcounts marked by create_foreignscan_path()

2014-02-17 Thread Etsuro Fujita
(2014/02/18 12:03), Tom Lane wrote: Etsuro Fujita fujita.ets...@lab.ntt.co.jp writes: Why does create_foreignscan_path() not set the rowcounts based on ParamPathInfo when the path is a parameterized path? The calling FDW is supposed to do that; note the header comment. Understood. However

Re: [HACKERS] inherit support for foreign tables

2014-02-18 Thread Etsuro Fujita
From: Shigeru Hanada [mailto:shigeru.han...@gmail.com] 2014-02-10 21:00 GMT+09:00 Etsuro Fujita fujita.ets...@lab.ntt.co.jp: (2014/02/07 21:31), Etsuro Fujita wrote: So, I've modified the patch so that we continue to disallow SET STORAGE on a foreign table *in the same manner as before

Re: [HACKERS] inherit support for foreign tables

2014-02-19 Thread Etsuro Fujita
(2014/02/19 12:12), Kyotaro HORIGUCHI wrote: At Tue, 18 Feb 2014 19:24:50 +0900, Etsuro Fujita wrote From: Shigeru Hanada [mailto:shigeru.han...@gmail.com] I'm not sure that allowing ALTER TABLE against parent table affects descendants even some of them are foreign table. I think the rule

Re: [HACKERS] inherit support for foreign tables

2014-02-20 Thread Etsuro Fujita
doesn't seem to be a matter of 'ALTER TABLE'. Could you tell me how this is related to 'ALTER TABLE'? These are not related to ALTER TABLE. [NO] INHERIT parent_table (and ADD/DROP CONSTRAINT) are what I think should be newly allowed to apply to foreign tables directly. Thanks, Best regards, Etsuro

Re: [HACKERS] inherit support for foreign tables

2014-02-20 Thread Etsuro Fujita
(2014/02/20 19:55), Etsuro Fujita wrote: (2014/02/20 15:47), Kyotaro HORIGUCHI wrote: Although my concerns here are only two points, unanticipated application and maintenancibility. I gave a consideration on these issues again. Sorry, I misunderstood what you mean by unanticipated

Re: [HACKERS] inherit support for foreign tables

2014-02-20 Thread Etsuro Fujita
not sure it's worth implementing such a checking mechanism in the recursive altering operation... Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Minor comment improvements in tablecmds.c

2014-02-24 Thread Etsuro Fujita
This is a small patch to improve comments in tablecmds.c. Please find attached a patch. Thanks, Best regards, Etsuro Fujita diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 08b037e..ed9d206 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend

Re: [HACKERS] inherit support for foreign tables

2014-02-25 Thread Etsuro Fujita
-table case to reparameterize_path(). And I think we should introduce a new FDW routine, say ReparameterizeForeignPath() because the processing would be performed best by the FDW itself. Comments are welcome! Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql

Re: [HACKERS] Rowcounts marked by create_foreignscan_path()

2014-03-03 Thread Etsuro Fujita
(2014/02/18 12:37), Tom Lane wrote: Etsuro Fujita fujita.ets...@lab.ntt.co.jp writes: (2014/02/18 12:03), Tom Lane wrote: The calling FDW is supposed to do that; note the header comment. However, ISTM postgresGetForeignPaths() doesn't work like that. It uses the same rowcount for all paths

Re: [HACKERS] inherit support for foreign tables

2014-03-10 Thread Etsuro Fujita
be implemented as a separate patch. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] inherit support for foreign tables

2014-03-13 Thread Etsuro Fujita
. [1] http://www.postgresql.org/message-id/530c7464.6020...@lab.ntt.co.jp Best regards, Etsuro Fujita *** a/contrib/file_fdw/file_fdw.c --- b/contrib/file_fdw/file_fdw.c *** *** 117,122 static void fileGetForeignRelSize(PlannerInfo *root, --- 117,126 static void

Re: [HACKERS] inherit support for foreign tables

2014-03-20 Thread Etsuro Fujita
, Best regards, Etsuro Fujita *** a/contrib/file_fdw/file_fdw.c --- b/contrib/file_fdw/file_fdw.c *** *** 117,122 static void fileGetForeignRelSize(PlannerInfo *root, --- 117,126 static void fileGetForeignPaths(PlannerInfo *root, RelOptInfo

Re: [HACKERS] inherit support for foreign tables

2014-03-23 Thread Etsuro Fujita
(2014/03/20 21:59), Etsuro Fujita wrote: Here is a simple example for the case where the use_remote_estimate option is true: Sorry, I incorrectly wrote it. The following example is for the case where the option is *false*, as you see. # On mydatabase mydatabase=# CREATE TABLE mytable (id

Re: [HACKERS] inherit support for foreign tables

2014-03-26 Thread Etsuro Fujita
compromise by putting a note to CF-app that last judgement is left to committer. OK So, if there are no objections of other, I'll mark this patch as ready for committer and do that. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

Re: [HACKERS] inherit support for foreign tables

2014-03-27 Thread Etsuro Fujita
and the gain by the previous optimization don't seem to be significant.. Yeah, that's true. I have to admit that the previous optimization is nonsense. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription

Re: [HACKERS] inherit support for foreign tables

2014-03-31 Thread Etsuro Fujita
information, the same assertion can be found in create_foreignscan_plan(). Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] A question about code in DefineRelation()

2014-04-03 Thread Etsuro Fujita
|| 569 relkind == RELKIND_FOREIGN_TABLE)); Is this intended to support an OID column on foreign tables in future? Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your

Re: [HACKERS] Get more from indices.

2014-04-07 Thread Etsuro Fujita
as is. So, all we need to do is show important use cases that prove the effectiveness of the patch. Sorry, I can't come up with a good idea, though. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

[HACKERS] Minor improvements in alter_table.sgml

2014-04-08 Thread Etsuro Fujita
Attached is a patch to improve the manual page for the ALTER TABLE command. Thanks, Best regards, Etsuro Fujita diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index 0b08f83..ce67c71 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref

Re: [HACKERS] Minor improvements in alter_table.sgml

2014-04-08 Thread Etsuro Fujita
(2014/04/09 1:23), Robert Haas wrote: On Tue, Apr 8, 2014 at 5:05 AM, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: Attached is a patch to improve the manual page for the ALTER TABLE command. Do we really need to add a section for type_name when we already have a section for OF type_name

Re: [HACKERS] Get more from indices.

2014-04-10 Thread Etsuro Fujita
to do with the query_pathkeys. I think that the two pathkeys would be proved to be equal, if the both conditions are satisfied. Thanks, Best regards, Etsuro Fujita -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [HACKERS] Get more from indices.

2014-04-10 Thread Etsuro Fujita
(2014/04/10 22:25), Tom Lane wrote: Etsuro Fujita fujita.ets...@lab.ntt.co.jp writes: (2014/04/10 0:08), Tom Lane wrote: TBH I think that's barely the tip of the iceberg of cases where this patch will get the wrong answer. Also, I don't see it doing anything to check the ordering

Re: [HACKERS] Minor improvements in alter_table.sgml

2014-04-11 Thread Etsuro Fujita
(2014/04/09 12:03), Etsuro Fujita wrote: (2014/04/09 1:23), Robert Haas wrote: On Tue, Apr 8, 2014 at 5:05 AM, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: Attached is a patch to improve the manual page for the ALTER TABLE command. Do we really need to add a section for type_name when we

[HACKERS] Minor improvements in create_foreign_table.sgml

2014-04-14 Thread Etsuro Fujita
Attached is a small patch to improve create_foreign_table.sgml. Thanks, Best regards, Etsuro Fujita diff --git a/doc/src/sgml/ref/create_foreign_table.sgml b/doc/src/sgml/ref/create_foreign_table.sgml index 06a7087..4a8cf38 100644 --- a/doc/src/sgml/ref/create_foreign_table.sgml +++ b/doc/src

Re: [HACKERS] Minor improvements in alter_table.sgml

2014-04-15 Thread Etsuro Fujita
(2014/04/14 23:53), Robert Haas wrote: On Fri, Apr 11, 2014 at 5:00 AM, Etsuro Fujita fujita.ets...@lab.ntt.co.jp wrote: Attached is an updated version of the patch. I applied the first two hunks of this, which seem like clear oversights; and also the bit fixing the constraint_name language

Re: [HACKERS] Question about optimising (Postgres_)FDW

2014-04-16 Thread Etsuro Fujita
) Output: onemillion.id - Seq Scan on public.onemillion (cost=0.00..20834.00 rows=99918 width=4) Output: onemillion.id Filter: (onemillion.data '0.9'::text) Planning time: 0.215 ms (14 rows) Thanks, Best regards, Etsuro Fujita -- Sent via

Re: [HACKERS] Question about optimising (Postgres_)FDW

2014-04-17 Thread Etsuro Fujita
(2014/04/16 22:16), Hannu Krosing wrote: On 04/16/2014 01:35 PM, Etsuro Fujita wrote: Maybe I'm missing something, but I think that you can do what I think you'd like to do by the following procedure: No, what I'd like PostgreSQL to do is to 1. select the id+set from local table 2. select

[HACKERS] Minor improvement in src/backend/access/gin/README

2014-04-18 Thread Etsuro Fujita
The attached improves a document in src/backend/access/gin/README. Thanks, Best regards, Etsuro Fujita diff --git a/src/backend/access/gin/README b/src/backend/access/gin/README index 3f0c3e2..8a71d28 100644 --- a/src/backend/access/gin/README +++ b/src/backend/access/gin/README @@ -181,7 +181,7

[HACKERS] Minor improvement in gin_private.h

2014-04-18 Thread Etsuro Fujita
The attached improves a comment in gin_private.h a little bit. Thanks, Best regards, Etsuro Fujita diff --git a/src/include/access/gin_private.h b/src/include/access/gin_private.h index 81a3bee..3aa4276 100644 --- a/src/include/access/gin_private.h +++ b/src/include/access/gin_private.h

<    1   2   3   4   5   6   7   8   9   10   >