hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hornn <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: Hawq 317
Date Tue, 19 Jan 2016 20:54:05 GMT
Github user hornn commented on a diff in the pull request:

    --- Diff: src/backend/access/external/pxfutils.c ---
    @@ -47,6 +52,24 @@ void port_to_str(char **port, int new_port)
    + * get_hdfs_location_from_filespace
    + *
    + * Get hdfs location from pg_filespace_entry
    + * The returned path needs to be pfreed by the caller.
    + */
    +void get_hdfs_location_from_filespace(char** path)
    +	Assert(NULL != path);
    +	Oid dtsoid = get_database_dts(MyDatabaseId);
    --- End diff --
    It holds the OID of the current session's db. It is usually used to get the db's name
or any other properties related to it, such as the filespace.
    It is defined in globals.c and set in postinit.c's InitPostgres() which is called when
a session is opened (see postgres.c's PostgresMain()).

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.

View raw message