hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vraghavan78 <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: HAWQ-404. Add sort during INSERT of a...
Date Wed, 10 Feb 2016 22:16:28 GMT
Github user vraghavan78 commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/337#discussion_r52535069
  
    --- Diff: src/backend/utils/cache/lsyscache.c ---
    @@ -1799,6 +1799,25 @@ get_rel_name_partition(Oid relid)
     	return rel_name;
     }
     
    +/*
    + * get_rel_number_partitions
    + *
    + *		Returns the number of leaf partitions for a given root relation.
    + *		Returns 0 if the relation is not a partition table or non-root partition table.
    + */
    +int32
    +get_rel_number_partitions(Oid relid)
    +{
    +	if (PART_STATUS_NONE == rel_part_status(relid))
    +		return 0;
    +
    +	if (!rel_is_partitioned(relid))
    +		return 0;
    +
    +	int count = countLeafPartTables(relid);
    --- End diff --
    
    how are intermediate partitions handled?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message