diff --git a/contrib/extprotocol/expected/exttableext.out b/contrib/extprotocol/expected/exttableext.out index 976f5ca1faa..0f39693cf35 100644 --- a/contrib/extprotocol/expected/exttableext.out +++ b/contrib/extprotocol/expected/exttableext.out @@ -10,7 +10,7 @@ NOTICE: foreign table "exttabtest_options_r" does not exist, skipping SELECT * FROM exttabtest_options_r EXCEPT ALL SELECT * FROM exttabtest; -ERROR: This is greenplum. (gpextprotocol.c:56) +ERROR: This is greenplum. (gpextprotocol.c:67) CONTEXT: External table exttabtest_options_r, line 1 of file demoprot://exttabtest.txt DROP EXTERNAL TABLE IF EXISTS exttabtest_w; NOTICE: foreign table "exttabtest_w" does not exist, skipping diff --git a/contrib/extprotocol/gpextprotocol.c b/contrib/extprotocol/gpextprotocol.c index 4b09bb5a6bb..174ce6a08ce 100644 --- a/contrib/extprotocol/gpextprotocol.c +++ b/contrib/extprotocol/gpextprotocol.c @@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * gpextprotocol.c + * + * Portions Copyright (c) 2023, HashData Technology Limited. + * + * IDENTIFICATION + * contrib/extprotocol/gpextprotocol.c + * + *------------------------------------------------------------------------- + */ #include "postgres.h" #include "fmgr.h" #include "funcapi.h" diff --git a/contrib/interconnect/ic_common.h b/contrib/interconnect/ic_common.h index 545efa24b0f..8cef1596748 100644 --- a/contrib/interconnect/ic_common.h +++ b/contrib/interconnect/ic_common.h @@ -1,12 +1,12 @@ /*------------------------------------------------------------------------- - * ic_common.c + * ic_common.h * Interconnect code shared between UDP, and TCP IPC Layers. * * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION - * contrib/interconnect/ic_common.c + * contrib/interconnect/ic_common.h * *------------------------------------------------------------------------- */ @@ -140,4 +140,4 @@ extern TupleRemapper * GetMotionConnTupleRemapper(ChunkTransportState *transport int16 targetRoute); -#endif \ No newline at end of file +#endif diff --git a/contrib/interconnect/ic_internal.h b/contrib/interconnect/ic_internal.h index de362f43327..0a593cb1a8f 100644 --- a/contrib/interconnect/ic_internal.h +++ b/contrib/interconnect/ic_internal.h @@ -1,12 +1,12 @@ /*------------------------------------------------------------------------- - * interconnect_internal.h + * ic_internal.h * Motion IPC Layer. * * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION - * contrib/interconnect/interconnect_internal.h + * contrib/interconnect/ic_internal.h * *------------------------------------------------------------------------- */ diff --git a/contrib/interconnect/ic_modules.c b/contrib/interconnect/ic_modules.c index ac0c1daf006..11cfd9cb6f6 100644 --- a/contrib/interconnect/ic_modules.c +++ b/contrib/interconnect/ic_modules.c @@ -1,12 +1,12 @@ /*------------------------------------------------------------------------- - * interconnect.c + * ic_modules.c * Interconnect code shared between UDP, and TCP IPC Layers. * * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION - * contrib/interconnect/interconnect.c + * contrib/interconnect/ic_modules.c * *------------------------------------------------------------------------- */ @@ -162,4 +162,4 @@ _PG_init(void) errmsg("could not decide interconnect type"))); } -} \ No newline at end of file +} diff --git a/contrib/interconnect/ic_modules.h b/contrib/interconnect/ic_modules.h index 4c39287874c..9c8a1dbf254 100644 --- a/contrib/interconnect/ic_modules.h +++ b/contrib/interconnect/ic_modules.h @@ -1,12 +1,12 @@ /*------------------------------------------------------------------------- - * interconnect.h + * ic_modules.h * Motion IPC Layer. * * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION - * contrib/interconnect/interconnect.h + * contrib/interconnect/ic_modules.h * *------------------------------------------------------------------------- */ @@ -21,4 +21,4 @@ extern MotionIPCLayer udpifc_ipc_layer; extern void _PG_init(void); -#endif // INTER_CONNECT_H \ No newline at end of file +#endif // INTER_CONNECT_H diff --git a/contrib/interconnect/proxy/ic_proxy_backend.c b/contrib/interconnect/proxy/ic_proxy_backend.c index 7514096dbb6..75b8a61ede8 100644 --- a/contrib/interconnect/proxy/ic_proxy_backend.c +++ b/contrib/interconnect/proxy/ic_proxy_backend.c @@ -22,6 +22,7 @@ * Note that the backend setup part of ic-proxy has been implemented by libuv * loop. Data flow send/recv and connection tear down is still based on ic-tcp. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2020-Present VMware, Inc. or its affiliates. * * diff --git a/contrib/interconnect/tcp/ic_tcp.c b/contrib/interconnect/tcp/ic_tcp.c index d76e34dda25..82475520b5f 100644 --- a/contrib/interconnect/tcp/ic_tcp.c +++ b/contrib/interconnect/tcp/ic_tcp.c @@ -4,10 +4,11 @@ * * Portions Copyright (c) 2005-2008, Greenplum, Inc. * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. + * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION - * src/backend/cdb/motion/ic_tcp.c + * contrib/interconnect/tcp/ic_tcp.c * *------------------------------------------------------------------------- */ diff --git a/contrib/interconnect/udp/ic_udpifc.c b/contrib/interconnect/udp/ic_udpifc.c index 187696386eb..b6a415c8469 100644 --- a/contrib/interconnect/udp/ic_udpifc.c +++ b/contrib/interconnect/udp/ic_udpifc.c @@ -2,13 +2,14 @@ * ic_udpifc.c * Interconnect code specific to UDP transport. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2005-2011, Greenplum Inc. * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Copyright (c) 2011-2012, EMC Corporation * * * IDENTIFICATION - * src/backend/cdb/motion/ic_udpifc.c + * contrib/interconnect/udp/ic_udpifc.c * *------------------------------------------------------------------------- */ diff --git a/contrib/interconnect/udp/ic_udpifc.h b/contrib/interconnect/udp/ic_udpifc.h index ae50a55147c..af00a87c758 100644 --- a/contrib/interconnect/udp/ic_udpifc.h +++ b/contrib/interconnect/udp/ic_udpifc.h @@ -1,12 +1,12 @@ /*------------------------------------------------------------------------- - * ic_udp.h + * ic_udpifc.h * Motion IPC UDP implements. * * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION - * contrib/interconnect/udp/ic_udp.h + * contrib/interconnect/udp/ic_udpifc.h * *------------------------------------------------------------------------- */ diff --git a/contrib/pgcrypto/sm3.h b/contrib/pgcrypto/sm3.h index fd7bed3689c..3bc407bb045 100644 --- a/contrib/pgcrypto/sm3.h +++ b/contrib/pgcrypto/sm3.h @@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * sm3.h + * + * Portions Copyright (c) 2023, HashData Technology Limited. + * + * IDENTIFICATION + * contrib/pgcrypto/sm3.h + * + *------------------------------------------------------------------------- + */ #ifndef _SM3_H_ #define _SM3_H_ diff --git a/contrib/pgcrypto/sm4.c b/contrib/pgcrypto/sm4.c index 4e9cd08d9b3..b000948faa4 100644 --- a/contrib/pgcrypto/sm4.c +++ b/contrib/pgcrypto/sm4.c @@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * sm4.c + * + * Portions Copyright (c) 2023, HashData Technology Limited. + * + * IDENTIFICATION + * contrib/pgcrypto/sm4.c + * + *------------------------------------------------------------------------- + */ #include "postgres.h" #include "sm4.h" #include "px.h" diff --git a/gpcontrib/gp_inject_fault/gp_inject_fault.c b/gpcontrib/gp_inject_fault/gp_inject_fault.c index 009873941d7..15fef3cbcb3 100644 --- a/gpcontrib/gp_inject_fault/gp_inject_fault.c +++ b/gpcontrib/gp_inject_fault/gp_inject_fault.c @@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * gp_inject_fault.c + * + * Portions Copyright (c) 2023, HashData Technology Limited. + * + * IDENTIFICATION + * gpcontrib/gp_inject_fault/gp_inject_fault.c + * + *------------------------------------------------------------------------- + */ #include "postgres.h" #include "access/heapam.h" diff --git a/gpcontrib/gp_replica_check/gp_replica_check.c b/gpcontrib/gp_replica_check/gp_replica_check.c index cee2b0b7001..f3ecaece514 100644 --- a/gpcontrib/gp_replica_check/gp_replica_check.c +++ b/gpcontrib/gp_replica_check/gp_replica_check.c @@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * gp_replica_check.c + * + * Portions Copyright (c) 2023, HashData Technology Limited. + * + * IDENTIFICATION + * gpcontrib/gp_replica_check/gp_replica_check.c + * + *------------------------------------------------------------------------- + */ #include "postgres.h" #include "access/heapam.h" @@ -57,7 +68,7 @@ extern Datum gp_replica_check(PG_FUNCTION_ARGS); typedef struct RelfilenodeEntry { - RelFileNodeId relfilenode; + RelFileNodeId relfilenode; Oid relam; int relkind; char relname[NAMEDATALEN]; diff --git a/src/backend/access/aocs/aocsam.c b/src/backend/access/aocs/aocsam.c index 34b82851bb9..7ff06caa629 100644 --- a/src/backend/access/aocs/aocsam.c +++ b/src/backend/access/aocs/aocsam.c @@ -3,6 +3,7 @@ * aocsam.c * Append only columnar access methods * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2009-2010, Greenplum Inc. * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * diff --git a/src/backend/access/appendonly/appendonlyam.c b/src/backend/access/appendonly/appendonlyam.c index 2ca9b371c0f..1498c2f7419 100755 --- a/src/backend/access/appendonly/appendonlyam.c +++ b/src/backend/access/appendonly/appendonlyam.c @@ -7,6 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 2008-2009, Greenplum Inc. * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. + * Portions Copyright (c) 2023, HashData Technology Limited. * * * IDENTIFICATION diff --git a/src/backend/access/gin/ginfast.c b/src/backend/access/gin/ginfast.c index a6c0a739b75..02d2d6cf4e7 100644 --- a/src/backend/access/gin/ginfast.c +++ b/src/backend/access/gin/ginfast.c @@ -7,6 +7,7 @@ * transfer pending entries into the regular index structure. This * wins because bulk insertion is much more efficient than retail. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * @@ -307,7 +308,7 @@ ginHeapTupleFastInsert(GinState *ginstate, GinTupleCollector *collector) metadata->nPendingHeapTuples = sublist.nPendingHeapTuples; if (needWal) - XLogBeginInsert(); + XLogBeginInsert(); } else { @@ -337,8 +338,8 @@ ginHeapTupleFastInsert(GinState *ginstate, GinTupleCollector *collector) if (needWal) { - XLogBeginInsert(); - XLogRegisterBuffer(1, buffer, REGBUF_STANDARD); + XLogBeginInsert(); + XLogRegisterBuffer(1, buffer, REGBUF_STANDARD); } } } diff --git a/src/backend/access/transam/clog.c b/src/backend/access/transam/clog.c index 86e61aee5a2..1fc8416105d 100644 --- a/src/backend/access/transam/clog.c +++ b/src/backend/access/transam/clog.c @@ -23,6 +23,7 @@ * for aborts (whether sync or async), since the post-crash assumption would * be that such transactions failed anyway. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * @@ -1146,4 +1147,4 @@ SlruCtl CLOG_Ctl(void) { return XactCtl; -} \ No newline at end of file +} diff --git a/src/backend/access/transam/distributedlog.c b/src/backend/access/transam/distributedlog.c index 89be15e166f..b59ca01f124 100644 --- a/src/backend/access/transam/distributedlog.c +++ b/src/backend/access/transam/distributedlog.c @@ -17,6 +17,7 @@ * distributed transaction identifier -- the timestamp -- also so we can * be sure which distributed transaction we are looking at. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2007-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * @@ -1091,4 +1092,4 @@ SlruCtl DistributedLog_Ctl(void) { return DistributedLogCtl; -} \ No newline at end of file +} diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index 90788509f8a..fc866ba9d97 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -3,6 +3,7 @@ * varsup.c * postgres OID & XID variables support routines * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2000-2021, PostgreSQL Global Development Group * * IDENTIFICATION @@ -700,7 +701,7 @@ AdvanceObjectId(Oid newOid) static RelFileNodeId GetNewSegRelfilenodeUnderLock(void) { - RelFileNodeId result; + RelFileNodeId result; Assert(LWLockHeldByMe(RelfilenodeGenLock)); @@ -719,7 +720,7 @@ GetNewSegRelfilenodeUnderLock(void) } if (NewSegRelfilenode_assign_hook) - return (*NewSegRelfilenode_assign_hook) (); + return (*NewSegRelfilenode_assign_hook) (); result = ShmemVariableCache->nextRelfilenode; @@ -740,7 +741,7 @@ GetNewSegRelfilenodeUnderLock(void) RelFileNodeId GetNewSegRelfilenode(void) { - RelFileNodeId result; + RelFileNodeId result; LWLockAcquire(RelfilenodeGenLock, LW_EXCLUSIVE); diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 4d331ed7a7c..4c1036e7d53 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -4,6 +4,7 @@ * PostgreSQL write-ahead log manager * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/access/transam/xloginsert.c b/src/backend/access/transam/xloginsert.c index 3f486ae750f..73b93fda917 100644 --- a/src/backend/access/transam/xloginsert.c +++ b/src/backend/access/transam/xloginsert.c @@ -9,6 +9,7 @@ * of XLogRecData structs by a call to XLogRecordAssemble(). See * access/transam/README for details. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index 15ad2c7856b..fe369ebbd87 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -8,6 +8,7 @@ * None of this code is used during normal system operation. * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2006-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 68f243dcee7..defb20ec39b 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -3,6 +3,7 @@ * index.c * code to create and destroy POSTGRES index relations * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2006-2009, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c index 49f477549cd..1c4b56672be 100644 --- a/src/backend/catalog/storage.c +++ b/src/backend/catalog/storage.c @@ -3,6 +3,7 @@ * storage.c * code to create and destroy physical storage for relations * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/cdb/dispatcher/cdbgang.c b/src/backend/cdb/dispatcher/cdbgang.c index 747bc8aeab0..41f1082a3e8 100644 --- a/src/backend/cdb/dispatcher/cdbgang.c +++ b/src/backend/cdb/dispatcher/cdbgang.c @@ -3,6 +3,7 @@ * cdbgang.c * Query Executor Factory for gangs of QEs * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2005-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * diff --git a/src/backend/cdb/motion/ic_proxy_bgworker.c b/src/backend/cdb/motion/ic_proxy_bgworker.c index ba50dbf9bc6..be86f3f94a6 100644 --- a/src/backend/cdb/motion/ic_proxy_bgworker.c +++ b/src/backend/cdb/motion/ic_proxy_bgworker.c @@ -7,6 +7,7 @@ * This is only a wrapper, the actual main loop is in ic_proxy_main.c . * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2020-Present VMware, Inc. or its affiliates. * * diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c index e411dfa3876..0b2848e528a 100644 --- a/src/backend/executor/functions.c +++ b/src/backend/executor/functions.c @@ -3,6 +3,7 @@ * functions.c * Execution of SQL-language functions * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/executor/nodeSubplan.c b/src/backend/executor/nodeSubplan.c index 68c35f7d653..041ffc32544 100644 --- a/src/backend/executor/nodeSubplan.c +++ b/src/backend/executor/nodeSubplan.c @@ -11,6 +11,7 @@ * subplans, which are re-evaluated every time their result is required. * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2005-2010, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index e796faddf31..33241bfdddc 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -3,6 +3,7 @@ * bufmgr.c * buffer manager interface routines * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2006-2009, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index 34c17a00db0..ad25cec28d7 100644 --- a/src/backend/storage/lmgr/lmgr.c +++ b/src/backend/storage/lmgr/lmgr.c @@ -3,6 +3,7 @@ * lmgr.c * POSTGRES lock manager code * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2006-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c index 0cfb9bae55f..c523bdde99a 100644 --- a/src/backend/storage/smgr/md.c +++ b/src/backend/storage/smgr/md.c @@ -10,6 +10,7 @@ * It doesn't matter whether the bits are on spinning rust or some other * storage technology. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/task/job_metadata.c b/src/backend/task/job_metadata.c index e603d5fce52..f00f597d996 100644 --- a/src/backend/task/job_metadata.c +++ b/src/backend/task/job_metadata.c @@ -5,6 +5,7 @@ * Functions for reading and manipulating pg_cron metadata. * * Copyright (c) 2016, Citus Data, Inc. + * Portions Copyright (c) 2023, HashData Technology Limited. * *------------------------------------------------------------------------- */ diff --git a/src/backend/task/pg_cron.c b/src/backend/task/pg_cron.c index 808b81d406e..af764c52386 100644 --- a/src/backend/task/pg_cron.c +++ b/src/backend/task/pg_cron.c @@ -7,6 +7,7 @@ * - A job is a scheduling definition of a task * - A task is what is actually executed within the database engine * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2016, Citus Data, Inc. * *------------------------------------------------------------------------- diff --git a/src/backend/task/task_states.c b/src/backend/task/task_states.c index 92a771a29d8..b62afb7d8e5 100644 --- a/src/backend/task/task_states.c +++ b/src/backend/task/task_states.c @@ -4,6 +4,7 @@ * * Logic for storing and manipulating cron task states. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2016, Citus Data, Inc. * *------------------------------------------------------------------------- diff --git a/src/backend/tcop/dest.c b/src/backend/tcop/dest.c index 3db078a2f00..4f59391420b 100644 --- a/src/backend/tcop/dest.c +++ b/src/backend/tcop/dest.c @@ -4,6 +4,7 @@ * support for communication destinations * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index a4214ad0662..9a006c282aa 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -3,6 +3,7 @@ * miscinit.c * miscellaneous initialization support stuff * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/backend/utils/mmgr/slab.c b/src/backend/utils/mmgr/slab.c index 834cab81fa8..f553e567f8d 100644 --- a/src/backend/utils/mmgr/slab.c +++ b/src/backend/utils/mmgr/slab.c @@ -7,6 +7,7 @@ * numbers of equally-sized objects are allocated (and freed). * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2017-2021, PostgreSQL Global Development Group * * IDENTIFICATION diff --git a/src/backend/utils/sort/tuplestore.c b/src/backend/utils/sort/tuplestore.c index 6d17d0cbbed..3903b450bcd 100644 --- a/src/backend/utils/sort/tuplestore.c +++ b/src/backend/utils/sort/tuplestore.c @@ -64,6 +64,7 @@ * It is up to the calling code to do the freezing, opening for reading, and * destroying the tuplestore in the right order! * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2007-2010, Greenplum Inc. * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/bin/pg_alterckey/pg_alterckey.c b/src/bin/pg_alterckey/pg_alterckey.c index 6449e5b896d..c57e20ada41 100644 --- a/src/bin/pg_alterckey/pg_alterckey.c +++ b/src/bin/pg_alterckey/pg_alterckey.c @@ -18,6 +18,7 @@ * 9. Remove "old" * 10. Remove lock file * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index e38a602d8a9..68f13533d6b 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1,6 +1,7 @@ /* * psql - the PostgreSQL interactive terminal * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2005-2010, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Copyright (c) 2000-2021, PostgreSQL Global Development Group diff --git a/src/include/access/clog.h b/src/include/access/clog.h index d3b3c0e8209..15d882dcb30 100644 --- a/src/include/access/clog.h +++ b/src/include/access/clog.h @@ -3,6 +3,7 @@ * * PostgreSQL transaction-commit-log manager * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/access/distributedlog.h b/src/include/access/distributedlog.h index 15cd228ed1c..0616617a528 100644 --- a/src/include/access/distributedlog.h +++ b/src/include/access/distributedlog.h @@ -17,6 +17,7 @@ * distributed transaction identifier -- the timestamp -- also so we can * be sure which distributed transaction we are looking at. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2007-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * diff --git a/src/include/access/heapam_xlog.h b/src/include/access/heapam_xlog.h index b1d72c00e15..c1974fd7e25 100644 --- a/src/include/access/heapam_xlog.h +++ b/src/include/access/heapam_xlog.h @@ -4,6 +4,7 @@ * POSTGRES heap access XLOG definitions. * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/access/xloginsert.h b/src/include/access/xloginsert.h index a78796c93e1..5cbb1794cfb 100644 --- a/src/include/access/xloginsert.h +++ b/src/include/access/xloginsert.h @@ -3,6 +3,7 @@ * * Functions for generating WAL records * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h index 170d7e90786..4f934ba7c7a 100644 --- a/src/include/access/xlogutils.h +++ b/src/include/access/xlogutils.h @@ -3,6 +3,7 @@ * * Utilities for replaying WAL records. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/catalog/gp_segment_configuration_indexing.h b/src/include/catalog/gp_segment_configuration_indexing.h index 7d72782e6d4..b426b7217a0 100644 --- a/src/include/catalog/gp_segment_configuration_indexing.h +++ b/src/include/catalog/gp_segment_configuration_indexing.h @@ -4,6 +4,7 @@ * This file provides some definitions to support gp_segment_configuration indexing * on GPDB catalogs * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2007-2010, Greenplum inc * * @@ -19,4 +20,4 @@ DECLARE_UNIQUE_INDEX(gp_segment_config_content_preferred_role_warehouse_index, 7 DECLARE_UNIQUE_INDEX(gp_segment_config_dbid_warehouse_index, 7140, on gp_segment_configuration using btree(dbid int2_ops, warehouseid oid_ops)); #define GpSegmentConfigDbidWarehouseIndexId 7140 -#endif // GP_SEGMENT_CONFIGURATION_INDEXING_H \ No newline at end of file +#endif // GP_SEGMENT_CONFIGURATION_INDEXING_H diff --git a/src/include/catalog/gp_warehouse.h b/src/include/catalog/gp_warehouse.h index 87646361569..ae990d31095 100644 --- a/src/include/catalog/gp_warehouse.h +++ b/src/include/catalog/gp_warehouse.h @@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * gp_warehouse.h + * + * Portions Copyright (c) 2023, HashData Technology Limited. + * + * IDENTIFICATION + * src/include/catalog/gp_warehouse.h + * + *------------------------------------------------------------------------- + */ #ifndef GP_WAREHOUSE_H #define GP_WAREHOUSE_H @@ -9,8 +20,8 @@ */ CATALOG(gp_warehouse,8690,GpWarehouseRelationId) BKI_SHARED_RELATION { - Oid oid; /* oid */ - text warehouse_name; /* warehouse name */ + Oid oid; /* oid */ + text warehouse_name; /* warehouse name */ } FormData_gp_warehouse; typedef FormData_gp_warehouse *Form_gp_warehouse; diff --git a/src/include/catalog/index.h b/src/include/catalog/index.h index 6c5204ec148..8e0ee2349b2 100644 --- a/src/include/catalog/index.h +++ b/src/include/catalog/index.h @@ -4,6 +4,7 @@ * prototypes for catalog/index.c. * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/catalog/storage.h b/src/include/catalog/storage.h index ca71c8ded7d..b0e68a8cd50 100644 --- a/src/include/catalog/storage.h +++ b/src/include/catalog/storage.h @@ -4,6 +4,7 @@ * prototypes for functions in backend/catalog/storage.c * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/cdb/cdbdispatchresult.h b/src/include/cdb/cdbdispatchresult.h index f03bce05d12..ac8d827fe52 100644 --- a/src/include/cdb/cdbdispatchresult.h +++ b/src/include/cdb/cdbdispatchresult.h @@ -3,6 +3,7 @@ * cdbdispatchresult.h * routines for processing dispatch results. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2005-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * diff --git a/src/include/cdb/cdbinterconnect.h b/src/include/cdb/cdbinterconnect.h index eda5c594632..eb55c1cf384 100644 --- a/src/include/cdb/cdbinterconnect.h +++ b/src/include/cdb/cdbinterconnect.h @@ -2,6 +2,7 @@ * cdbinterconnect.h * Defines state that is used by both the Motion Layer and IPC Layer. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2006-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * diff --git a/src/include/cdb/ml_ipc.h b/src/include/cdb/ml_ipc.h index 272487966f6..9f0b1299a4b 100644 --- a/src/include/cdb/ml_ipc.h +++ b/src/include/cdb/ml_ipc.h @@ -2,6 +2,7 @@ * ml_ipc.h * Motion IPC Layer. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2005-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * diff --git a/src/include/postmaster/bgworker_internals.h b/src/include/postmaster/bgworker_internals.h index 6f3edb3b160..050365676de 100644 --- a/src/include/postmaster/bgworker_internals.h +++ b/src/include/postmaster/bgworker_internals.h @@ -2,6 +2,7 @@ * bgworker_internals.h * POSTGRES pluggable background workers internals * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h index 7b1f98b933d..129bdb8d61b 100644 --- a/src/include/storage/bufmgr.h +++ b/src/include/storage/bufmgr.h @@ -4,6 +4,7 @@ * POSTGRES buffer manager definitions. * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/include/storage/lmgr.h b/src/include/storage/lmgr.h index a8806269fa6..b873f0d46d7 100644 --- a/src/include/storage/lmgr.h +++ b/src/include/storage/lmgr.h @@ -4,6 +4,7 @@ * POSTGRES lock manager definitions. * * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 2006-2008, Greenplum inc * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group diff --git a/src/include/task/job_metadata.h b/src/include/task/job_metadata.h index a96a116bee5..cd7206a6784 100644 --- a/src/include/task/job_metadata.h +++ b/src/include/task/job_metadata.h @@ -3,6 +3,7 @@ * job_metadata.h * definition of job metadata functions * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2010-2015, Citus Data, Inc. * *------------------------------------------------------------------------- diff --git a/src/include/task/pg_cron.h b/src/include/task/pg_cron.h index 24fd88842e9..8543afab921 100644 --- a/src/include/task/pg_cron.h +++ b/src/include/task/pg_cron.h @@ -3,6 +3,7 @@ * pg_cron.h * definition of pg_cron data types * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2010-2015, Citus Data, Inc. * *------------------------------------------------------------------------- diff --git a/src/include/task/task_states.h b/src/include/task/task_states.h index 29f8dfcfa19..975ae7d914c 100644 --- a/src/include/task/task_states.h +++ b/src/include/task/task_states.h @@ -3,6 +3,7 @@ * task_states.h * definition of task state functions * + * Portions Copyright (c) 2023, HashData Technology Limited. * Copyright (c) 2010-2015, Citus Data, Inc. * *------------------------------------------------------------------------- diff --git a/src/include/utils/tuplestore.h b/src/include/utils/tuplestore.h index d26b34a5377..a2a07f05a27 100644 --- a/src/include/utils/tuplestore.h +++ b/src/include/utils/tuplestore.h @@ -21,6 +21,7 @@ * Also, we have changed the API to return tuples in TupleTableSlots, * so that there is a check to prevent attempted access to system columns. * + * Portions Copyright (c) 2023, HashData Technology Limited. * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California *