Return-Path: X-Original-To: apmail-hawq-dev-archive@minotaur.apache.org Delivered-To: apmail-hawq-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73D85185A6 for ; Thu, 12 Nov 2015 22:23:59 +0000 (UTC) Received: (qmail 47565 invoked by uid 500); 12 Nov 2015 22:23:59 -0000 Delivered-To: apmail-hawq-dev-archive@hawq.apache.org Received: (qmail 47515 invoked by uid 500); 12 Nov 2015 22:23:59 -0000 Mailing-List: contact dev-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list dev@hawq.incubator.apache.org Received: (qmail 47504 invoked by uid 99); 12 Nov 2015 22:23:58 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 22:23:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5D7F0180E67 for ; Thu, 12 Nov 2015 22:23:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.971 X-Spam-Level: X-Spam-Status: No, score=0.971 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SCWiuB52MqLA for ; Thu, 12 Nov 2015 22:23:57 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 6F0E820489 for ; Thu, 12 Nov 2015 22:23:57 +0000 (UTC) Received: (qmail 47499 invoked by uid 99); 12 Nov 2015 22:23:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 22:23:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D6D88E5E2A; Thu, 12 Nov 2015 22:23:56 +0000 (UTC) From: entong To: dev@hawq.incubator.apache.org Reply-To: dev@hawq.incubator.apache.org Message-ID: Subject: [GitHub] incubator-hawq pull request: HAWQ-130. Fix analyzedb utility faili... Content-Type: text/plain Date: Thu, 12 Nov 2015 22:23:56 +0000 (UTC) GitHub user entong opened a pull request: https://github.com/apache/incubator-hawq/pull/104 HAWQ-130. Fix analyzedb utility failing when a table was created usin… …g quotes having upper case letters In this commit we fix the quoting issue of analyzedb if tablename contains uppercase letters. Below is the repro of the issue: stevejobs=# create table "APPLE" (field1 int); stevejobs=# \dt List of relations Schema | Name | Type | Owner | Storage -------------------------------- public | APPLE | table | gpadmin | heap public | mac | table | gpadmin | heap (2 rows) one uppercase,lowercase table ======== Now i am analysing with analyzedb utility for database stevejobs ======= [gpadmin@mdw ~]$ analyzedb -d stevejobs 20151005:14:16:32:032553 analyzedb:mdw:gpadmin-[INFO]:-Starting analyzedb with args: -d stevejobs 20151005:14:16:32:032553 analyzedb:mdw:gpadmin-[INFO]:-Getting and verifying input tables... 20151005:14:16:32:032553 analyzedb:mdw:gpadmin-[INFO]:-Checking for tables with stale stats... 20151005:14:16:32:032553 analyzedb:mdw:gpadmin-[ERROR]:-analyzedb error: error 'ERROR: relation "public.apple" does not exist LINE 4: ...eration'::regclass,'pg_catalog.pg_proc'::regclass,'public.AP... ^ ' in ' select n.nspname as schemaname, c.relname as tablename from pg_class c, pg_namespace n where You can merge this pull request into a Git repository by running: $ git pull https://github.com/entong/incubator-hawq HAWQ-130 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-hawq/pull/104.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #104 ---- commit ef424a7521e8b2ce09e3262f9b0e97640c9ddc53 Author: Entong Shen Date: 2015-11-12T22:16:36Z HAWQ-130. Fix analyzedb utility failing when a table was created using quotes having upper case letters ---- --- 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. ---