You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rv...@apache.org on 2015/12/29 08:02:24 UTC

[3/3] incubator-hawq git commit: Updating source file licensing and copyright notices (closes #220)

Updating source file licensing and copyright notices (closes #220)


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/42469999
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/42469999
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/42469999

Branch: refs/heads/master
Commit: 424699998e918c5df8e4814c2c802ad16033e63f
Parents: c9fc57a
Author: Roman Shaposhnik <rv...@apache.org>
Authored: Sat Dec 26 15:20:54 2015 -0800
Committer: Roman Shaposhnik <rv...@apache.org>
Committed: Mon Dec 28 23:01:06 2015 -0800

----------------------------------------------------------------------
 NOTICE                                          | 12 +++++-
 pxf/README.md                                   |  2 -
 pxf/build.gradle                                | 23 ++++++++++-
 src/backend/access/common/memtuple.c            | 17 +++++++-
 src/backend/access/index/catquery.c             | 15 ++++++-
 src/backend/access/index/gperf.init             | 15 ++++++-
 .../access/transam/persistentendxactrec.c       | 17 +++++++-
 .../access/transam/persistentfilesysobjname.c   | 17 +++++++-
 src/backend/access/transam/xlog_mm.c            | 17 +++++++-
 src/backend/access/transam/xlogloc.c            | 17 +++++++-
 src/backend/catalog/gp_toolkit.sql.in           | 25 ++++++++----
 src/backend/catalog/pg_attribute_encoding.c     | 18 +++++++-
 src/backend/catalog/pg_compression.c            | 21 +++++++---
 src/backend/catalog/pg_proc_callback.c          | 18 +++++++-
 src/backend/catalog/quicklz_compression.c       | 21 +++++++---
 src/backend/executor/execHeapScan.c             | 18 +++++++-
 src/backend/executor/nodeTableFunction.c        | 18 +++++++-
 src/backend/gpopt/gpopt.mk                      | 17 +++++++-
 src/backend/gpopt/translate/CQueryMutators.cpp  |  3 --
 src/backend/libpq/pg_sha2.c                     | 21 +++++++---
 src/backend/optimizer/plan/plangroupext.c       | 17 +++++++-
 src/backend/optimizer/plan/planpartition.c      | 19 ++++++++-
 src/backend/optimizer/plan/planshare.c          | 19 ++++++++-
 src/backend/parser/parse_cte.c                  | 18 +++++++-
 src/backend/postmaster/alertseverity.c          | 16 +++++++-
 src/backend/postmaster/ddaserver.c              | 17 +++++++-
 src/backend/postmaster/perfmon.c                | 17 +++++++-
 src/backend/postmaster/perfmon_segmentinfo.c    | 21 ++++++----
 src/backend/postmaster/primary_mirror_mode.c    | 17 +++++++-
 src/backend/postmaster/sendalert.c              | 16 +++++++-
 src/backend/postmaster/seqserver.c              | 17 +++++++-
 src/backend/postmaster/service.c                | 16 +++++++-
 src/backend/postmaster/walredoserver.c          | 17 +++++++-
 src/backend/postmaster/walsendserver.c          | 17 +++++++-
 src/backend/utils/adt/gp_optimizer_functions.c  | 18 +++++++-
 src/backend/utils/adt/gp_partition_functions.c  | 18 +++++++-
 src/backend/utils/adt/percentile.c              | 16 +++++++-
 src/backend/utils/cache/sharedcache.c           | 17 +++++++-
 src/backend/utils/cache/sharedcache_gclock.c    | 17 +++++++-
 src/backend/utils/cache/syncrefhashtable.c      | 17 +++++++-
 src/backend/utils/error/debugbreak.c            | 19 ++++++++-
 src/backend/utils/error/debugutils.c            | 18 +++++++-
 src/backend/utils/fmgr/deprecated.c             | 18 +++++++-
 src/backend/utils/gp/Makefile                   | 17 +++++++-
 src/backend/utils/gp/persistentutil.c           | 17 +++++++-
 src/backend/utils/gp/segadmin.c                 | 17 +++++++-
 src/backend/utils/misc/simex.c                  | 18 +++++++-
 src/backend/utils/misc/uriparser.c              | 17 +++++++-
 src/backend/utils/resscheduler/memquota.c       | 17 +++++++-
 src/bin/gpcheckhdfs/gpcheckhdfs.c               |  2 -
 src/bin/gpfusion/common.h                       | 18 +++++++-
 src/bin/gpfusion/gpdbwritableformatter.c        | 17 +++++++-
 src/include/access/appendonlytid.h              | 17 +++++++-
 src/include/access/cdbdistributedxidmap.h       | 18 +++++++-
 src/include/access/extprotocol.h                | 18 +++++++-
 src/include/access/fileam.h                     | 17 +++++++-
 src/include/access/formatter.h                  | 18 +++++++-
 src/include/access/hd_work_mgr.h                | 17 +++++++-
 src/include/access/memtup.h                     | 17 +++++++-
 src/include/access/persistentendxactrec.h       | 17 +++++++-
 src/include/access/persistentfilesysobjname.h   | 17 +++++++-
 src/include/access/pxffilters.h                 | 18 +++++++-
 src/include/access/pxfmasterapi.h               | 17 +++++++-
 src/include/access/url.h                        | 17 +++++++-
 src/include/access/xlogmm.h                     | 18 +++++++-
 src/include/catalog/calico.pl                   | 41 +++++++++++++++----
 src/include/catalog/caqltrack.pl                | 24 +++++++----
 src/include/catalog/caqluniqdef.pl              | 24 +++++++----
 src/include/catalog/catullus.pl                 | 24 +++++++----
 src/include/catalog/pablopcatso.pl              | 24 +++++++----
 src/include/catalog/pg_attribute_encoding.h     | 17 +++++++-
 src/include/catalog/pg_compression.h            | 17 +++++++-
 src/include/catalog/pg_exttable.h               | 17 +++++++-
 src/include/catalog/pg_filesystem.h             | 17 +++++++-
 src/include/catalog/pg_partition_encoding.h     | 17 +++++++-
 src/include/catalog/pg_proc_callback.h          | 18 +++++++-
 src/include/catalog/pg_tidycat.h                | 17 +++++++-
 src/include/catalog/pg_type_encoding.h          | 17 +++++++-
 src/include/catalog/pg_window.h                 | 17 +++++++-
 src/include/catalog/sleazy.pl                   | 24 +++++++----
 src/include/catalog/tidycat.pl                  | 43 ++++++++++++++++----
 src/include/commands/analyzeutils.h             | 17 +++++++-
 src/include/commands/queue.h                    | 17 +++++++-
 src/include/optimizer/planshare.h               | 19 ++++++++-
 src/include/parser/parse_cte.h                  | 18 +++++++-
 src/include/parser/tidygram.py                  | 17 +++++++-
 src/include/postmaster/ddaserver.h              | 17 +++++++-
 src/include/postmaster/identity.h               | 17 +++++++-
 src/include/postmaster/perfmon.h                | 17 +++++++-
 src/include/postmaster/perfmon_segmentinfo.h    | 17 +++++++-
 src/include/postmaster/primary_mirror_mode.h    | 17 +++++++-
 .../primary_mirror_transition_client.h          | 17 +++++++-
 src/include/postmaster/seqserver.h              | 17 +++++++-
 src/include/postmaster/service.h                | 17 +++++++-
 src/include/postmaster/walredoserver.h          | 17 +++++++-
 src/include/postmaster/walsendserver.h          | 17 +++++++-
 src/include/storage/dbdirnode.h                 | 17 +++++++-
 src/include/storage/tablespacedirnode.h         | 17 +++++++-
 src/include/tablefuncapi.h                      | 18 +++++++-
 src/include/utils/atomic.h                      | 18 +++++++-
 src/include/utils/datumstreamblock.h            | 19 ++++++++-
 src/include/utils/debugbreak.h                  | 19 ++++++++-
 src/include/utils/debugutils.h                  | 18 +++++++-
 src/include/utils/faultinjector.h               | 17 +++++++-
 src/include/utils/netcheck.h                    | 17 +++++++-
 src/include/utils/sharedcache.h                 | 15 ++++++-
 src/include/utils/simex.h                       | 18 +++++++-
 src/include/utils/syncbitvector.h               | 18 +++++++-
 src/include/utils/syncrefhashtable.h            | 15 ++++++-
 src/include/utils/testutils.h                   | 18 +++++++-
 src/include/utils/uri.h                         | 17 +++++++-
 .../org/postgresql/pljava/sqlj/JarLoader.java   | 17 +++++++-
 src/pl/pljava/src/sql/pljava_install.sh         | 17 +++++++-
 src/test/libcdbtest/cdbtest.h                   | 18 +++++++-
 src/test/libcdbtest/chunkfuncs.c                | 15 ++++++-
 src/test/libcdbtest/hashapi_access.c            | 16 +++++++-
 src/test/libcdbtest/mlapi_access.c              | 16 +++++++-
 src/test/libcdbtest/mlipc_access.c              | 15 ++++++-
 src/test/regress/atmsort.pl                     | 24 +++++++----
 .../data/upgrade41/catalog40/toolkit.sql        | 25 ++++++++----
 src/test/regress/dld.pl                         | 24 +++++++----
 .../regress/expected/tpch500GB.32bit_tpch.tpl   | 18 +++++++-
 src/test/regress/expected/tpch500GB_orca.out    | 18 +++++++-
 src/test/regress/explain.pl                     | 24 +++++++----
 src/test/regress/get_ereport.pl                 | 24 +++++++----
 src/test/regress/gpdiff.pl                      | 24 +++++++----
 src/test/regress/gpexclude.pl                   | 24 +++++++----
 src/test/regress/gpsourcify.pl                  | 24 +++++++----
 src/test/regress/gpstringsubs.pl                | 24 +++++++----
 src/test/regress/gptorment.pl                   | 24 +++++++----
 src/test/regress/sql/tpch500GB.32bit_tpch.tpl   | 18 +++++++-
 src/test/regress/sql/tpch500GB_orca.sql         | 18 +++++++-
 src/test/regress/upg2_wizard.pl                 | 24 +++++++----
 src/timezone/gptime.c                           | 17 +++++++-
 src/tools/backend/costmodel/hashVsHash.sq       | 17 +++++++-
 src/tools/backend/costmodel/hashVsIndex.sq      | 17 +++++++-
 tools/bin/gpfaultinjector                       | 17 +++++++-
 .../commands/test/regress/test_regress_pg.py    |  2 -
 tools/bin/gpsd                                  |  8 ++--
 139 files changed, 2203 insertions(+), 303 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
index 636755e..a0b6410 100644
--- a/NOTICE
+++ b/NOTICE
@@ -4,6 +4,16 @@ Copyright 2015 The Apache Software Foundation.
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
 
+Portions Copyright (c) 2014-2015, Pivotal Inc.
+
+Portions Copyright (c) 2010-2013, EMC Inc.
+
+Portions Copyright (c) 2005-2010, Greenplum Inc.
+
+Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
+
+Portions Copyright (c) 1994, The Regents of the University of California
+
 The following is a listing of the open source components detailed in
 this document. This list is provided for your convenience; please read
 further if you wish to review the copyright notice(s) and the full text
@@ -358,4 +368,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
\ No newline at end of file
+THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/pxf/README.md
----------------------------------------------------------------------
diff --git a/pxf/README.md b/pxf/README.md
index 7c5e492..b7cd7f0 100644
--- a/pxf/README.md
+++ b/pxf/README.md
@@ -1,8 +1,6 @@
 The PXF extensions library for HAWQ
 ===================================
 
-Copyright © 2014 Pivotal Software, Inc. All Rights reserved.
-
 Table of Contents
 =================
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/pxf/build.gradle
----------------------------------------------------------------------
diff --git a/pxf/build.gradle b/pxf/build.gradle
index c7b5669..e187307 100644
--- a/pxf/build.gradle
+++ b/pxf/build.gradle
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 buildscript {
     repositories {
         // mavenCentral without https:
@@ -95,7 +114,7 @@ subprojects { subProject ->
         release = buildNumber()
         version = subProject.version.split('-')[0];
         os = LINUX
-        license = "Copyright (c) ${new Date().format("yyyy")} Pivotal Software, Inc. All Rights reserved."
+        license = "ASL 2.0"
         obsoletes('gpxf')
         user = 'root'
         permissionGroup = 'root'
@@ -374,7 +393,7 @@ task tomcatRpm(type: Rpm) {
         release = buildNumber()
         version = tomcatVersion
         os = LINUX
-        license = "Copyright (c) ${new Date().format("yyyy")} Pivotal Software, Inc. All Rights reserved."
+        license = "ASL 2.0"
         user = 'root'
         permissionGroup = 'root'
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/common/memtuple.c
----------------------------------------------------------------------
diff --git a/src/backend/access/common/memtuple.c b/src/backend/access/common/memtuple.c
index e6d4ac6..6d63f5b 100644
--- a/src/backend/access/common/memtuple.c
+++ b/src/backend/access/common/memtuple.c
@@ -1,7 +1,22 @@
 /* 
  * MemTuple
  * 
- * Copyright (c) 2006-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/index/catquery.c
----------------------------------------------------------------------
diff --git a/src/backend/access/index/catquery.c b/src/backend/access/index/catquery.c
index 1b2c9a8..471d7b6 100644
--- a/src/backend/access/index/catquery.c
+++ b/src/backend/access/index/catquery.c
@@ -44,9 +44,22 @@ ARGV: \-meta\ \/Users\/jianl\/Git\/hawq\/mn\/cdb\-pg\/\.\.\/gpMgmt\/bin\/gppylib
  * catquery.c
  *	  general catalog table access methods (internal api)
  *
- * Copyright (c) 2011,2012,2013 Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/index/gperf.init
----------------------------------------------------------------------
diff --git a/src/backend/access/index/gperf.init b/src/backend/access/index/gperf.init
index bc00f47..6a5cdec 100644
--- a/src/backend/access/index/gperf.init
+++ b/src/backend/access/index/gperf.init
@@ -13,9 +13,22 @@ ARGV: \-meta\ \/Users\/yjin\/hawq_main\/gpMgmt\/bin\/gppylib\/data\/2\.0\.json\
  * catquery.c
  *	  general catalog table access methods (internal api)
  *
- * Copyright (c) 2011,2012,2013 Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/transam/persistentendxactrec.c
----------------------------------------------------------------------
diff --git a/src/backend/access/transam/persistentendxactrec.c b/src/backend/access/transam/persistentendxactrec.c
index 44055c8..625b20c 100755
--- a/src/backend/access/transam/persistentendxactrec.c
+++ b/src/backend/access/transam/persistentendxactrec.c
@@ -3,7 +3,22 @@
  * persistentendxactrec.c
  *	  Make and read persistent information in commit, abort, and prepared records.
  *
- * Copyright (c) 2009-2010, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/transam/persistentfilesysobjname.c
----------------------------------------------------------------------
diff --git a/src/backend/access/transam/persistentfilesysobjname.c b/src/backend/access/transam/persistentfilesysobjname.c
index bc3dd8a..67f998b 100755
--- a/src/backend/access/transam/persistentfilesysobjname.c
+++ b/src/backend/access/transam/persistentfilesysobjname.c
@@ -2,7 +2,22 @@
  *
  * persistentfilesysobjname.c
  *
- * Copyright (c) 2009-2010, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/transam/xlog_mm.c
----------------------------------------------------------------------
diff --git a/src/backend/access/transam/xlog_mm.c b/src/backend/access/transam/xlog_mm.c
index bface0c..20a6eb7 100644
--- a/src/backend/access/transam/xlog_mm.c
+++ b/src/backend/access/transam/xlog_mm.c
@@ -4,7 +4,22 @@
  *
  * Special xlog handling for master mirroring.
  *
- * Copyright (c) 2010 Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/access/transam/xlogloc.c
----------------------------------------------------------------------
diff --git a/src/backend/access/transam/xlogloc.c b/src/backend/access/transam/xlogloc.c
index 7ea1dca..30ccf7e 100755
--- a/src/backend/access/transam/xlogloc.c
+++ b/src/backend/access/transam/xlogloc.c
@@ -2,7 +2,22 @@
  *
  * xlogloc.c
  *
- * Copyright (c) 2007-2009, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/catalog/gp_toolkit.sql.in
----------------------------------------------------------------------
diff --git a/src/backend/catalog/gp_toolkit.sql.in b/src/backend/catalog/gp_toolkit.sql.in
index abc3094..86269e5 100644
--- a/src/backend/catalog/gp_toolkit.sql.in
+++ b/src/backend/catalog/gp_toolkit.sql.in
@@ -1,16 +1,23 @@
 --------------------------------------------------------------------------------
--- Greenplum Database
--- Copyright (C) 2009, 2010 by Greenplum, Inc. All rights reserved.
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--   http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+-- KIND, either express or implied.  See the License for the
+-- specific language governing permissions and limitations
+-- under the License.
 --
 -- %%JETPACK_SCHEMA%% %%JETPACK_VERSION%%
 --
--- This software is subject to change without notice. It is furnished under a 
--- license agreement, and may be used or copied only in accordance with the
--- terms of that agreement. Upgrades are provided only at regularly scheduled 
--- software release dates. No part of this file may be reproduced, transmitted, 
--- or translated in any form or by any means, electronic, mechanical, manual, 
--- optical, or otherwise without the prior written permission of Greenplum, Inc.
---
 --------------------------------------------------------------------------------
 
 BEGIN;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/catalog/pg_attribute_encoding.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/pg_attribute_encoding.c b/src/backend/catalog/pg_attribute_encoding.c
index 734208b..dd34456 100644
--- a/src/backend/catalog/pg_attribute_encoding.c
+++ b/src/backend/catalog/pg_attribute_encoding.c
@@ -3,7 +3,23 @@
  *
  * Routines to manipulation and retrieve column encoding information.
  *
- * Copyright (c) EMC, 2011
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/catalog/pg_compression.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/pg_compression.c b/src/backend/catalog/pg_compression.c
index e9714db..9d0ff4a 100644
--- a/src/backend/catalog/pg_compression.c
+++ b/src/backend/catalog/pg_compression.c
@@ -1,11 +1,20 @@
 /*
- * Copyright (c) 2011 EMC Corporation All Rights Reserved
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * This software is protected, without limitation, by copyright law
- * and international treaties. Use of this software and the intellectual
- * property contained therein is expressly limited to the terms and
- * conditions of the License Agreement under which it is provided by
- * or on behalf of EMC.
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * ---------------------------------------------------------------------
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/catalog/pg_proc_callback.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/pg_proc_callback.c b/src/backend/catalog/pg_proc_callback.c
index 9105be3..f6b080e 100644
--- a/src/backend/catalog/pg_proc_callback.c
+++ b/src/backend/catalog/pg_proc_callback.c
@@ -7,7 +7,23 @@
  *   and consists of:
  *     - DESCRIBE() - to support more complex pseudotype resolution
  *
- * Copyright (c) EMC, 2011
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/catalog/quicklz_compression.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/quicklz_compression.c b/src/backend/catalog/quicklz_compression.c
index c6aabe5..357b4d4 100644
--- a/src/backend/catalog/quicklz_compression.c
+++ b/src/backend/catalog/quicklz_compression.c
@@ -1,11 +1,20 @@
 /*
- * Copyright (c) 2011 EMC Corporation All Rights Reserved
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * This software is protected, without limitation, by copyright law
- * and international treaties. Use of this software and the intellectual
- * property contained therein is expressly limited to the terms and
- * conditions of the License Agreement under which it is provided by
- * or on behalf of EMC.
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * ---------------------------------------------------------------------
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/executor/execHeapScan.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/execHeapScan.c b/src/backend/executor/execHeapScan.c
index 7c61066..26583b9 100644
--- a/src/backend/executor/execHeapScan.c
+++ b/src/backend/executor/execHeapScan.c
@@ -2,7 +2,23 @@
  * execHeapScan.c
  *   Support routines for scanning Heap tables.
  *
- * Copyright (c) 2012 - present, EMC/Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/executor/nodeTableFunction.c
----------------------------------------------------------------------
diff --git a/src/backend/executor/nodeTableFunction.c b/src/backend/executor/nodeTableFunction.c
index f53d39e..dcd8a8c 100644
--- a/src/backend/executor/nodeTableFunction.c
+++ b/src/backend/executor/nodeTableFunction.c
@@ -26,7 +26,23 @@
  *	 ExecStopTableFunctionScan		closes external resources before EOD.
  *	 ExecTableFunctionReScan		rescans the relation
  *
- * Copyright (c) 2011, EMC
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/gpopt/gpopt.mk
----------------------------------------------------------------------
diff --git a/src/backend/gpopt/gpopt.mk b/src/backend/gpopt/gpopt.mk
index 3e4e841..6c77d2f 100644
--- a/src/backend/gpopt/gpopt.mk
+++ b/src/backend/gpopt/gpopt.mk
@@ -1,6 +1,21 @@
 ##-------------------------------------------------------------------------------------
 ##
-## Copyright (C) 2012 EMC Corp.
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
 ##
 ## @doc: GP optimizer build 
 ##

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/gpopt/translate/CQueryMutators.cpp
----------------------------------------------------------------------
diff --git a/src/backend/gpopt/translate/CQueryMutators.cpp b/src/backend/gpopt/translate/CQueryMutators.cpp
index 751fc8c..3392adc 100644
--- a/src/backend/gpopt/translate/CQueryMutators.cpp
+++ b/src/backend/gpopt/translate/CQueryMutators.cpp
@@ -18,9 +18,6 @@
  */
 
 //---------------------------------------------------------------------------
-//	Greenplum Database
-//	Copyright (C) 2012 EMC Corp.
-//
 //	@filename:
 //		CQueryMutators.cpp
 //

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/libpq/pg_sha2.c
----------------------------------------------------------------------
diff --git a/src/backend/libpq/pg_sha2.c b/src/backend/libpq/pg_sha2.c
index 109ccbb..6e34c7f 100644
--- a/src/backend/libpq/pg_sha2.c
+++ b/src/backend/libpq/pg_sha2.c
@@ -1,11 +1,20 @@
 /*
- * Copyright (c) 2011 EMC Corporation All Rights Reserved
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * This software is protected, without limitation, by copyright law
- * and international treaties. Use of this software and the intellectual
- * property contained therein is expressly limited to the terms and
- * conditions of the License Agreement under which it is provided by
- * or on behalf of EMC.
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * ---------------------------------------------------------------------
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/optimizer/plan/plangroupext.c
----------------------------------------------------------------------
diff --git a/src/backend/optimizer/plan/plangroupext.c b/src/backend/optimizer/plan/plangroupext.c
index f668998..57b38ac 100644
--- a/src/backend/optimizer/plan/plangroupext.c
+++ b/src/backend/optimizer/plan/plangroupext.c
@@ -3,7 +3,22 @@
  * plangroupexp.c
  *    Planning routines for grouping extensions.
  *
- * Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * IDENTIFICATION
  *    $PostgreSQL$

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/optimizer/plan/planpartition.c
----------------------------------------------------------------------
diff --git a/src/backend/optimizer/plan/planpartition.c b/src/backend/optimizer/plan/planpartition.c
index 67aac87..9940de6 100644
--- a/src/backend/optimizer/plan/planpartition.c
+++ b/src/backend/optimizer/plan/planpartition.c
@@ -3,8 +3,23 @@
  * planpartition.c
  *	  Transforms to produce plans that achieve dynamic partition elimination.
  *
- * Portions Copyright (c) 2011-2013, EMC Corporation
- * Author: Siva
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/optimizer/plan/planshare.c
----------------------------------------------------------------------
diff --git a/src/backend/optimizer/plan/planshare.c b/src/backend/optimizer/plan/planshare.c
index ed30ab7..0ea3456 100644
--- a/src/backend/optimizer/plan/planshare.c
+++ b/src/backend/optimizer/plan/planshare.c
@@ -1,7 +1,24 @@
 /* 
  * planshare.c
  * 		Plan shared plan
- * Copyright (c) 2007-2008, Greenplum inc
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/parser/parse_cte.c
----------------------------------------------------------------------
diff --git a/src/backend/parser/parse_cte.c b/src/backend/parser/parse_cte.c
index b92bb73..3c3cac7 100644
--- a/src/backend/parser/parse_cte.c
+++ b/src/backend/parser/parse_cte.c
@@ -2,7 +2,23 @@
  * parse_cte.c
  *    Handle WITH clause in parser.
  *
- * Copyright (c) 2011 - present, EMC Greenplum.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 #include "postgres.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/alertseverity.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/alertseverity.c b/src/backend/postmaster/alertseverity.c
index 14f1448..6e9aef8 100644
--- a/src/backend/postmaster/alertseverity.c
+++ b/src/backend/postmaster/alertseverity.c
@@ -4,8 +4,22 @@
  *
  * Set the severity level of the alert based on the message
  *
- * Copyright (c) 2010, EMC Corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/ddaserver.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/ddaserver.c b/src/backend/postmaster/ddaserver.c
index 19f7063..0ec885e 100644
--- a/src/backend/postmaster/ddaserver.c
+++ b/src/backend/postmaster/ddaserver.c
@@ -6,7 +6,22 @@
  *    communicates with the master ddaserver at the QD when it finds
  *    a lock waiter.
  *
- * Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/perfmon.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/perfmon.c b/src/backend/postmaster/perfmon.c
index 2521653..2760071 100644
--- a/src/backend/postmaster/perfmon.c
+++ b/src/backend/postmaster/perfmon.c
@@ -2,7 +2,22 @@
  *
  * perfmon.c
  *
- * Copyright (c) 2006-2009, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * $Id: //cdb2/private/cpedrotti/main/cdb-pg/src/backend/postmaster/perfmon.c#1 $
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/perfmon_segmentinfo.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/perfmon_segmentinfo.c b/src/backend/postmaster/perfmon_segmentinfo.c
index 5f3f4e5..48a784b 100644
--- a/src/backend/postmaster/perfmon_segmentinfo.c
+++ b/src/backend/postmaster/perfmon_segmentinfo.c
@@ -3,15 +3,22 @@
  * segmentinfo.c
  *    Send segment information to perfmon
  *
- * Copyright (c) 2010, Greenplum inc.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * This file contains functions for sending segment information to
- * perfmon. At startup the postmaster process forks a new process
- * that sends segment info in predefined intervals using UDP packets.
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *
- *  Created on: Feb 28, 2010
- *      Author: kkrik
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
 */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/primary_mirror_mode.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/primary_mirror_mode.c b/src/backend/postmaster/primary_mirror_mode.c
index 1141d5c..c52f0b9 100644
--- a/src/backend/postmaster/primary_mirror_mode.c
+++ b/src/backend/postmaster/primary_mirror_mode.c
@@ -1,5 +1,20 @@
 /**
- * Copyright (c) 2005-2009, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * Manages transitions between primary/mirror modes.
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/sendalert.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/sendalert.c b/src/backend/postmaster/sendalert.c
index 1177559..595e664 100644
--- a/src/backend/postmaster/sendalert.c
+++ b/src/backend/postmaster/sendalert.c
@@ -4,8 +4,22 @@
  *
  * Send alerts via SMTP (email) or SNMP INFORM messsages.
  *
- * Copyright (c) 2009, Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/seqserver.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/seqserver.c b/src/backend/postmaster/seqserver.c
index 236294a..ed7f078 100644
--- a/src/backend/postmaster/seqserver.c
+++ b/src/backend/postmaster/seqserver.c
@@ -5,7 +5,22 @@
  * 		QEs.
  *
  *
- * Copyright (c) 2006-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/service.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/service.c b/src/backend/postmaster/service.c
index 88814f4..f7b8afb 100644
--- a/src/backend/postmaster/service.c
+++ b/src/backend/postmaster/service.c
@@ -5,8 +5,22 @@
  *    under the postmaster that communicate with other Postgres processes
  *    with TCP/IP (same GP instance or different GP instance).
  *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * Copyright (c) 2007-2008, Greenplum inc
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/walredoserver.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/walredoserver.c b/src/backend/postmaster/walredoserver.c
index 50ccf6a..4290735 100644
--- a/src/backend/postmaster/walredoserver.c
+++ b/src/backend/postmaster/walredoserver.c
@@ -4,7 +4,22 @@
  *	  Process under QD postmaster that manages redo of the WAL by the standby.
  *
  *
- * Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/postmaster/walsendserver.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/walsendserver.c b/src/backend/postmaster/walsendserver.c
index 247f625..3fe5982 100644
--- a/src/backend/postmaster/walsendserver.c
+++ b/src/backend/postmaster/walsendserver.c
@@ -4,7 +4,22 @@
  *	  Process under QD postmaster that manages sending WAL to the standby.
  *
  *
- * Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/adt/gp_optimizer_functions.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/adt/gp_optimizer_functions.c b/src/backend/utils/adt/gp_optimizer_functions.c
index 695d8a3..fc95209 100644
--- a/src/backend/utils/adt/gp_optimizer_functions.c
+++ b/src/backend/utils/adt/gp_optimizer_functions.c
@@ -8,7 +8,23 @@
  *
  * gp_opt_version: This function wraps LibraryVersion. 
  *
- * Copyright(c) 2012 - present, EMC/Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/adt/gp_partition_functions.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/adt/gp_partition_functions.c b/src/backend/utils/adt/gp_partition_functions.c
index ee34287..9e250c8 100644
--- a/src/backend/utils/adt/gp_partition_functions.c
+++ b/src/backend/utils/adt/gp_partition_functions.c
@@ -16,7 +16,23 @@
  * gp_partition_inverse: This function returns all child partitition oids
  *    with their constarints for a given parent oid.
  *
- * Copyright(c) 2012 - present, EMC/Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/adt/percentile.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/adt/percentile.c b/src/backend/utils/adt/percentile.c
index f3653de..89af2c2 100644
--- a/src/backend/utils/adt/percentile.c
+++ b/src/backend/utils/adt/percentile.c
@@ -4,8 +4,22 @@
  *	  Support functions for inverse distribution functions.
  *
  *
- * Copyright (c) 2005-2010, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/cache/sharedcache.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/cache/sharedcache.c b/src/backend/utils/cache/sharedcache.c
index 4e867af..eb1a1dc 100644
--- a/src/backend/utils/cache/sharedcache.c
+++ b/src/backend/utils/cache/sharedcache.c
@@ -4,7 +4,22 @@
  *	 A generic synchronized cache implementation that lives in the
  *	 shared memory.
  *
- * Copyright (c) 2012, EMC Corp.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/cache/sharedcache_gclock.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/cache/sharedcache_gclock.c b/src/backend/utils/cache/sharedcache_gclock.c
index 1233693..86d25cc 100644
--- a/src/backend/utils/cache/sharedcache_gclock.c
+++ b/src/backend/utils/cache/sharedcache_gclock.c
@@ -3,7 +3,22 @@
  * sharedcache_gclock.c
  *	 A generalized clock replacement policy for the shared cache
  *
- * Copyright (c) 2012, EMC Corp.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/cache/syncrefhashtable.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/cache/syncrefhashtable.c b/src/backend/utils/cache/syncrefhashtable.c
index 1a10b91..9baffc3 100644
--- a/src/backend/utils/cache/syncrefhashtable.c
+++ b/src/backend/utils/cache/syncrefhashtable.c
@@ -4,7 +4,22 @@
  *  A synchronized, ref-counted hashtable in shared memory,
  *  built on top of dynahash.c
  *
- * Copyright (c) 2012, EMC Corp.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/error/debugbreak.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/error/debugbreak.c b/src/backend/utils/error/debugbreak.c
index 3613747..501958a 100644
--- a/src/backend/utils/error/debugbreak.c
+++ b/src/backend/utils/error/debugbreak.c
@@ -1,7 +1,24 @@
 /* 
  * debugbreak.c
  * 	Debugging facilities
- * Copyright (c) 2007-2008, Greenplum inc
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/error/debugutils.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/error/debugutils.c b/src/backend/utils/error/debugutils.c
index 863aed1..9d4bc7e 100644
--- a/src/backend/utils/error/debugutils.c
+++ b/src/backend/utils/error/debugutils.c
@@ -3,7 +3,23 @@
  * 
  * Routines for debugging Greenplum DB
  * 
- * Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include "postgres.h"

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/fmgr/deprecated.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/fmgr/deprecated.c b/src/backend/utils/fmgr/deprecated.c
index 5e7fe16..d740c93 100644
--- a/src/backend/utils/fmgr/deprecated.c
+++ b/src/backend/utils/fmgr/deprecated.c
@@ -9,7 +9,23 @@
  * to point to this function instead which will provide an error message
  * when the function is called.
  *
- * Copyright (c) 2010, Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/gp/Makefile
----------------------------------------------------------------------
diff --git a/src/backend/utils/gp/Makefile b/src/backend/utils/gp/Makefile
index 9c83e6d..020eae7 100644
--- a/src/backend/utils/gp/Makefile
+++ b/src/backend/utils/gp/Makefile
@@ -2,7 +2,22 @@
 #
 #    Makefile for utils/gp
 #
-# Copyright (c) Greenplum 2010
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
 #
 #-------------------------------------------------------------------------
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/gp/persistentutil.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/gp/persistentutil.c b/src/backend/utils/gp/persistentutil.c
index 6afd416..d373b01 100644
--- a/src/backend/utils/gp/persistentutil.c
+++ b/src/backend/utils/gp/persistentutil.c
@@ -1,6 +1,21 @@
 /*-------------------------------------------------------------------------
  *
- * Copyright (c) 2010 Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * Functions to support administrative tasks against gp_persistent_*_node
  * tables, gp_global_sequence and gp_relation_node. These tables do not have

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/gp/segadmin.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/gp/segadmin.c b/src/backend/utils/gp/segadmin.c
index dc4a26b..6a7d3d5 100644
--- a/src/backend/utils/gp/segadmin.c
+++ b/src/backend/utils/gp/segadmin.c
@@ -1,6 +1,21 @@
 /*-------------------------------------------------------------------------
  *
- * Copyright (c) 2010 Greenplum
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  * Functions to support administrative tasks with GPDB segments.
  *

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/misc/simex.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/simex.c b/src/backend/utils/misc/simex.c
index 1885d4d..730b84f 100644
--- a/src/backend/utils/misc/simex.c
+++ b/src/backend/utils/misc/simex.c
@@ -19,7 +19,23 @@
  * for initializing, reseting and deleting it. All backends access the same bit
  * vectors through this shmem segment.
  *
- * Copyright (c) 2010, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 
 #include <dlfcn.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/misc/uriparser.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/uriparser.c b/src/backend/utils/misc/uriparser.c
index 3cc680f..5489c17 100644
--- a/src/backend/utils/misc/uriparser.c
+++ b/src/backend/utils/misc/uriparser.c
@@ -3,7 +3,22 @@
 * uriparser.c
 *	  Functions for parsing URI strings
 *
-* Copyright (c) 2007-2008, Greenplum inc
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
 *
 *-------------------------------------------------------------------------
 */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/backend/utils/resscheduler/memquota.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/resscheduler/memquota.c b/src/backend/utils/resscheduler/memquota.c
index c0b7205..d550c8a 100644
--- a/src/backend/utils/resscheduler/memquota.c
+++ b/src/backend/utils/resscheduler/memquota.c
@@ -4,7 +4,22 @@
  * Routines related to memory quota for queries.
  *
  *
- * Copyright (c) 2010, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  * 
  *-------------------------------------------------------------------------*/
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/bin/gpcheckhdfs/gpcheckhdfs.c
----------------------------------------------------------------------
diff --git a/src/bin/gpcheckhdfs/gpcheckhdfs.c b/src/bin/gpcheckhdfs/gpcheckhdfs.c
index 9a19f7e..935b076 100644
--- a/src/bin/gpcheckhdfs/gpcheckhdfs.c
+++ b/src/bin/gpcheckhdfs/gpcheckhdfs.c
@@ -28,8 +28,6 @@
  *
  * It uses libhdfs to communicate with HDFS.
  *
- * Copyright (c) 2014, Greenplum inc
- *
  *-------------------------------------------------------------------------
  */
 #include <stdio.h>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/bin/gpfusion/common.h
----------------------------------------------------------------------
diff --git a/src/bin/gpfusion/common.h b/src/bin/gpfusion/common.h
index c3d8ab5..b1cd81a 100644
--- a/src/bin/gpfusion/common.h
+++ b/src/bin/gpfusion/common.h
@@ -3,7 +3,23 @@
  *
  * Header for common PXF functions and utilities.
  *
- * Copyright (c) 2011, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 #ifndef _GPHDFS_COMMON_H_
 #define _GPHDFS_COMMON_H_

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/bin/gpfusion/gpdbwritableformatter.c
----------------------------------------------------------------------
diff --git a/src/bin/gpfusion/gpdbwritableformatter.c b/src/bin/gpfusion/gpdbwritableformatter.c
index 3cad1fa..e26a736 100644
--- a/src/bin/gpfusion/gpdbwritableformatter.c
+++ b/src/bin/gpfusion/gpdbwritableformatter.c
@@ -12,7 +12,22 @@
  * bytes produced by gpdbwritableformatter_export and GPDBWritable.write.
  *
  *
- * Copyright (c) 2011, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/include/access/appendonlytid.h
----------------------------------------------------------------------
diff --git a/src/include/access/appendonlytid.h b/src/include/access/appendonlytid.h
index 1b9a710..6b8f83f 100755
--- a/src/include/access/appendonlytid.h
+++ b/src/include/access/appendonlytid.h
@@ -2,7 +2,22 @@
  *
  * appendonlystoragetid.h
  *
- * Copyright (c) 2007-2009, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  *
  *-------------------------------------------------------------------------
  */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/include/access/cdbdistributedxidmap.h
----------------------------------------------------------------------
diff --git a/src/include/access/cdbdistributedxidmap.h b/src/include/access/cdbdistributedxidmap.h
index 6fd0e36..bd83250 100644
--- a/src/include/access/cdbdistributedxidmap.h
+++ b/src/include/access/cdbdistributedxidmap.h
@@ -2,7 +2,23 @@
  * cdbdistributedxidmap.h
  *		Maps distributed DTM XIDs to local xids 
  *
- * Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  */
 #ifndef DISTRIBUTEDXIDMAP_H
 #define DISTRIBUTEDXIDMAP_H

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/include/access/extprotocol.h
----------------------------------------------------------------------
diff --git a/src/include/access/extprotocol.h b/src/include/access/extprotocol.h
index 9e35dae..d70c844 100644
--- a/src/include/access/extprotocol.h
+++ b/src/include/access/extprotocol.h
@@ -3,7 +3,23 @@
  * access/exttableprotocol.h
  *	  Declarations for External Table Protocol functions
  *
- * Copyright (c) 2010, EMC corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  *-------------------------------------------------------------------------
  */
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/include/access/fileam.h
----------------------------------------------------------------------
diff --git a/src/include/access/fileam.h b/src/include/access/fileam.h
index 5d63c28..145cb84 100644
--- a/src/include/access/fileam.h
+++ b/src/include/access/fileam.h
@@ -3,7 +3,22 @@
 * fileam.h
 *	  external file access method definitions.
 *
-* Copyright (c) 2007-2008, Greenplum inc
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
 *
 *-------------------------------------------------------------------------
 */

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/42469999/src/include/access/formatter.h
----------------------------------------------------------------------
diff --git a/src/include/access/formatter.h b/src/include/access/formatter.h
index 47c8b82..326002c 100644
--- a/src/include/access/formatter.h
+++ b/src/include/access/formatter.h
@@ -3,7 +3,23 @@
  * access/formatter.h
  *	  Declarations for External Table Formatter functions
  *
- * Copyright (c) 2010, EMC corporation
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
  *-------------------------------------------------------------------------
  */