MCPcopy Create free account

hub / github.com/apache/cloudberry / functions

Functions50,827 in github.com/apache/cloudberry

↓ 8,551 callersFunctionerrmsg
* errmsg --- add a primary error message text to the current error * * In addition to the usual %-escapes recognized by printf, "%m" in * fmt is re
src/backend/utils/error/elog.c:1140
↓ 6,782 callersFunctionerrcode
* errcode --- add SQLSTATE error code to the current error * * The code is expected to be represented as per MAKE_SQLSTATE(). */
src/backend/utils/error/elog.c:901
↓ 2,464 callersFunctionforeach
src/backend/gpopt/gpdbwrappers.cpp:197
↓ 2,455 callersMethodRelease
--------------------------------------------------------------------------- @function: CJobFactory::Release @doc: Release completed job ------------
src/backend/gporca/libgpopt/src/search/CJobFactory.cpp:144
↓ 2,273 callersFunctionMemoryContextSwitchTo
src/include/utils/palloc.h:167
↓ 2,006 callersFunctionObjectIdGetDatum
src/include/postgres.h:540
↓ 1,979 callersMethodAddRef
count up
src/backend/gporca/libgpos/include/gpos/common/CRefCount.h:85
↓ 1,954 callersFunctionpfree
* pfree * Release an allocated chunk. */
src/backend/utils/mmgr/mcxt.c:1406
↓ 1,646 callersFunctionpalloc
src/backend/utils/mmgr/mcxt.c:1299
↓ 1,580 callersFunctionlist_length
Fetch list's length */
src/include/nodes/pg_list.h:148
↓ 1,475 callersFunctionlappend
* Append a pointer to the list. A pointer to the modified list is * returned. Note that this function may or may not destructively * modify the list
src/backend/nodes/list.c:335
↓ 1,411 callersFunctionappendStringInfo
* appendStringInfo * * Format text data under the control of fmt (an sprintf-style format string) * and append it to whatever is already in str. M
src/common/stringinfo.c:106
↓ 1,374 callersFunctionPQgetvalue
* PQgetvalue: * return the value of field 'field_num' of row 'tup_num' */
src/interfaces/libpq/fe-exec.c:3680
↓ 1,263 callersMethodPop
--------------------------------------------------------------------------- @function: CExpressionHandle::Pop @doc: Get operator from handle -------
src/backend/gporca/libgpopt/src/operators/CExpressionHandle.cpp:1182
↓ 1,208 callersFunctionappendStringInfoString
* appendStringInfoString * * Append a null-terminated string to str. * Like appendStringInfo(str, "%s", s) but faster. */
src/common/stringinfo.c:191
↓ 1,203 callersFunctionappendPQExpBufferStr
* appendPQExpBufferStr * Append the given string to a PQExpBuffer, allocating more space * if necessary. */
src/interfaces/libpq/pqexpbuffer.c:375
↓ 1,202 callersFunctionappendPQExpBuffer
* appendPQExpBuffer * * Format text data under the control of fmt (an sprintf-like format string) * and append it to whatever is already in str. M
src/interfaces/libpq/pqexpbuffer.c:273
↓ 1,109 callersMethodSize
src/backend/gporca/libgpopt/include/gpopt/base/CKHeap.h:203
↓ 1,003 callersFunctionslice_from_s
src/backend/snowball/libstemmer/utilities.c:422
↓ 963 callersFunctionpalloc0
src/backend/utils/mmgr/mcxt.c:1330
↓ 953 callersFunctiontable_close
---------------- * table_close - close a table * * If lockmode is not "NoLock", we then release the specified lock. * * Note that it is often
src/backend/access/table/table.c:171
↓ 868 callersFunctionpstrdup
src/backend/utils/mmgr/mcxt.c:1536
↓ 845 callersFunctionPQclear
* PQclear - * free's the memory associated with a PGresult */
src/interfaces/libpq/fe-exec.c:717
↓ 844 callersFunctiontable_open
---------------- * table_open - open a table relation by relation OID * * This is essentially relation_open plus check that the relation * is n
src/backend/access/table/table.c:43
↓ 832 callersFunctionLWLockRelease
* LWLockRelease - release a previously acquired lock */
src/backend/storage/lmgr/lwlock.c:1808
↓ 820 callersFunctionReleaseSysCache
* ReleaseSysCache * Release previously grabbed reference count on a tuple */
src/backend/utils/cache/syscache.c:1403
↓ 776 callersFunctionerrmsg
contrib/interconnect/test/elog_mock.c:378
↓ 761 callersFunctionerrdetail
* errdetail --- add a detail error message text to the current error */
src/backend/utils/error/elog.c:1273
↓ 756 callersFunctionPQfnumber
* PQfnumber: find column number given column name * * The column name is parsed as if it were in a SQL statement, including * case-folding and doub
src/interfaces/libpq/fe-exec.c:3394
↓ 755 callersMethodAppend
--------------------------------------------------------------------------- @function: COrderSpec::Append @doc: Append order expression; -----------
src/backend/gporca/libgpopt/src/base/COrderSpec.cpp:137
↓ 752 callersFunctionpfree
src/common/fe_memutils.c:133
↓ 690 callersMethodEopid
--------------------------------------------------------------------------- @function: CScalarArrayCoerceExpr::Eopid @doc: Return operator identifier
src/backend/gporca/libgpopt/src/operators/CScalarArrayCoerceExpr.cpp:51
↓ 684 callersFunctionerrhint
* errhint --- add a hint error message text to the current error */
src/backend/utils/error/elog.c:1385
↓ 679 callersFunctionerrcode
contrib/interconnect/test/elog_mock.c:270
↓ 652 callersMethodGetDXLMemoryManager
returns the current memory manager
src/backend/gporca/libnaucrates/include/naucrates/dxl/parser/CParseHandlerManager.h:76
↓ 651 callersFunctionpg_strdup
* "Safe" wrapper around strdup(). */
src/common/fe_memutils.c:84
↓ 632 callersFunctionTupleDescInitEntry
* TupleDescInitEntry * This function initializes a single attribute structure in * a previously allocated tuple descriptor. * * If attributeName
src/backend/access/common/tupdesc.c:590
↓ 632 callersFunctionsqlprint
print out an error message */
src/interfaces/ecpg/ecpglib/error.c:333
↓ 629 callersFunctionLWLockAcquire
* LWLockAcquire - acquire a lightweight lock in the specified mode * * If the lock is not available, sleep until it is. Returns true if the lock *
src/backend/storage/lmgr/lwlock.c:1204
↓ 625 callersFunctionSearchSysCache1
src/backend/utils/cache/syscache.c:1355
↓ 613 callersFunctionappendStringInfoChar
* appendStringInfoChar * * Append a single byte to str. * Like appendStringInfo(str, "%c", ch) but much faster. */
src/common/stringinfo.c:203
↓ 607 callersMethodArity
--------------------------------------------------------------------------- @function: CExpressionHandle::Arity @doc: Return number of children of at
src/backend/gporca/libgpopt/src/operators/CExpressionHandle.cpp:880
↓ 598 callersFunctionpalloc
* Frontend emulation of backend memory management functions. Useful for * programs that compile backend files. */
src/common/fe_memutils.c:115
↓ 594 callersFunctionpfree
src/backend/access/gin/test/ginpostinglist_fakes.c:41
↓ 571 callersMethodGetOperator
accessor for operator
src/backend/gporca/libnaucrates/include/naucrates/dxl/operators/CDXLNode.h:100
↓ 565 callersMethodAppend
--------------------------------------------------------------------------- @function: CWString::Append @doc: Appends a string to the current string
src/backend/gporca/libgpos/src/string/CWString.cpp:59
↓ 564 callersFunctionslice_del
src/backend/snowball/libstemmer/utilities.c:431
↓ 563 callersMethodappend
* ICBufferList::append * Append a buffer to the tail of a double-link list. */
contrib/udp2/ic_common/udp2/ic_udp2.cpp:828
↓ 560 callersFunctionerrcode_for_file_access
* errcode_for_file_access --- add SQLSTATE error code to the current error * * The SQLSTATE code is chosen based on the saved errno value. We assum
src/backend/utils/error/elog.c:928
↓ 552 callersFunctionInt32GetDatum
src/include/postgres.h:503
↓ 549 callersFunctionScanKeyInit
* ScanKeyInit * Shorthand version of ScanKeyEntryInitialize: flags and subtype * are assumed to be zero (the usual value), and collation is defaul
src/backend/access/common/scankey.c:75
↓ 545 callersFunctionGPOS_DELETE
src/backend/gporca/libgpos/include/gpos/memory/CMemoryPool.h:326
↓ 533 callersFunctionECPGdo
* Execute SQL statements in the backend. * The input/output parameters are passed as variable-length argument list. */
src/interfaces/ecpg/ecpglib/execute.c:2280
↓ 525 callersFunctionpsprintf
* psprintf * * Format text data under the control of fmt (an sprintf-style format string) * and return it in an allocated-on-demand buffer. The bu
src/common/psprintf.c:45
↓ 522 callersFunctionGetUserId
* GetUserId - get the current effective user ID. * * Note: there's no SetUserId() anymore; use SetUserIdAndSecContext(). */
src/backend/utils/init/miscinit.c:495
↓ 521 callersFunctionpg_fatal
src/bin/pg_upgrade/util.c:239
↓ 513 callersMethodjoin
Waits (up to an optional timeout) for the worker queue to be fully completed, and returns True if the pool is now done with its work.
gpMgmt/bin/gppylib/commands/base.py:118
↓ 494 callersMethodGetBuffer
--------------------------------------------------------------------------- @function: CMDIdGPDB::GetBuffer @doc: Returns the string representation o
src/backend/gporca/libnaucrates/src/md/CMDIdGPDB.cpp:204
↓ 489 callersFunctionparser_errposition
* parser_errposition * Report a parse-analysis-time cursor position, if possible. * * This is expected to be used within an ereport() call. The r
src/backend/parser/parse_node.c:110
↓ 462 callersMethodAppend
add child parse handler
src/backend/gporca/libnaucrates/include/naucrates/dxl/parser/CParseHandlerBase.h:83
↓ 458 callersMethodSize
--------------------------------------------------------------------------- @function: CDatumOidGPDB::Size @doc: Accessor of size ------------------
src/backend/gporca/libnaucrates/src/base/CDatumOidGPDB.cpp:125
↓ 447 callersFunctioninitStringInfo
* initStringInfo * * Initialize a StringInfoData struct (with previously undefined contents) * to describe an empty string. */
src/common/stringinfo.c:58
↓ 425 callersFunctionformat_type_be
* This version is for use within the backend in error messages, etc. * One difference is that it will fail for an invalid type. * * The result is a
src/backend/utils/adt/format_type.c:338
↓ 424 callersFunctionpg_strcasecmp
* Case-independent comparison of two null-terminated strings. */
src/port/pgstrcasecmp.c:35
↓ 421 callersMethodformat
Generate gp_era contents based on era value
gpMgmt/bin/gppylib/gp_era.py:72
↓ 418 callersFunctionpalloc
* Fake memory allocation methods */
src/backend/access/gin/test/ginpostinglist_fakes.c:34
↓ 411 callersFunctionPQresultStatus
src/interfaces/libpq/fe-exec.c:3216
↓ 410 callersFunctionPQerrorMessage
src/interfaces/libpq/fe-connect.c:6985
↓ 408 callersFunctionLockBuffer
* Acquire or release the content_lock for the buffer. */
src/backend/storage/buffer/bufmgr.c:4289
↓ 403 callersFunctionsystable_endscan
* systable_endscan --- close scan, release resources * * Note that it's still up to the caller to close the heap relation. */
src/backend/access/index/genam.c:595
↓ 396 callersFunctionlibpq_gettext
src/interfaces/libpq/fe-misc.c:1378
↓ 386 callersFunctionPQntuples
src/interfaces/libpq/fe-exec.c:3286
↓ 382 callersFunctionsystable_beginscan
* systable_beginscan --- set up for heap-or-index scan * * rel: catalog to scan, already opened and suitably locked * indexId: OID of index to cond
src/backend/access/index/genam.c:383
↓ 380 callersFunctionsystable_getnext
* systable_getnext --- get next tuple in a heap-or-index scan * * Returns NULL if no more tuples available. * * Note that returned tuple is a refe
src/backend/access/index/genam.c:502
↓ 375 callersMethodinfo
return self
gpMgmt/bin/gppylib/utils.py:393
↓ 370 callersFunctionfind_among_b
src/backend/snowball/libstemmer/utilities.c:298
↓ 362 callersFunctiondestroyPQExpBuffer
* destroyPQExpBuffer(str); * * free()s both the data buffer and the PQExpBufferData. * This is the inverse of createPQExpBuffer(). */
src/interfaces/libpq/pqexpbuffer.c:122
↓ 359 callersFunctionhash_search
* hash_search -- look up key in table and perform action * hash_search_with_hash_value -- same, with key's hash value already computed * * action i
src/backend/utils/hash/dynahash.c:953
↓ 356 callersMethodAddAttribute
--------------------------------------------------------------------------- @function: CXMLSerializer::AddAttribute @doc: Adds an attribute-value pai
src/backend/gporca/libnaucrates/src/xml/CXMLSerializer.cpp:180
↓ 355 callersMethodGetBuffer
--------------------------------------------------------------------------- @function: CWString::GetBuffer @doc: Returns the wide character buffer st
src/backend/gporca/libgpos/src/string/CWString.cpp:44
↓ 350 callersFunctionBoolGetDatum
src/include/postgres.h:485
↓ 350 callersFunctionDatumGetBool
* DatumGetBool * Returns boolean value of a datum. * * Note: any nonzero value will be considered true. */
src/include/postgres.h:484
↓ 349 callersFunctioncreatePQExpBuffer
* createPQExpBuffer * * Create an empty 'PQExpBufferData' & return a pointer to it. */
src/interfaces/libpq/pqexpbuffer.c:80
↓ 334 callersMethodExchangeSet
--------------------------------------------------------------------------- @function: CBitSet::ExchangeSet @doc: Set given bit; return previous valu
src/backend/gporca/libgpos/src/common/CBitSet.cpp:261
↓ 325 callersFunctionbufcat
* A simple wrapper around a strncpy that handles resizing an input buffer * when needed. */
gpcontrib/gpmapreduce/src/mapred.c:251
↓ 320 callersMethodwrite
(self, data)
gpMgmt/bin/gppylib/system/fileSystemImplTest.py:41
↓ 310 callersMethodActivateParseHandler
--------------------------------------------------------------------------- @function: CParseHandlerManager::ActivateParseHandler @doc: Activates the
src/backend/gporca/libnaucrates/src/parser/CParseHandlerManager.cpp:63
↓ 310 callersFunctionUnlockReleaseBuffer
* UnlockReleaseBuffer -- release the content lock and pin on a buffer * * This is just a shorthand for a common combination. */
src/backend/storage/buffer/bufmgr.c:4003
↓ 308 callersFunctionCStringGetDatum
src/include/postgres.h:567
↓ 302 callersFunctionheap_freetuple
* heap_freetuple */
src/backend/access/common/heaptuple.c:1382
↓ 287 callersFunctionMarkBufferDirty
* MarkBufferDirty * * Marks buffer contents as dirty (actual write happens later). * * Buffer must be pinned and exclusive-locked. (If caller do
src/backend/storage/buffer/bufmgr.c:1680
↓ 287 callersMethodsize
------------------------------------------------------------------------------
contrib/pax_storage/src/cpp/cpp-stub/src_linux/addr_any.h:2459
↓ 284 callersMethodAddChild
--------------------------------------------------------------------------- @function: CDXLNode::AddChild @doc: Adds a child to the DXL node's list o
src/backend/gporca/libnaucrates/src/operators/CDXLNode.cpp:171
↓ 283 callersFunctionheap_form_tuple
src/include/access/htup_details.h:815
↓ 282 callersFunctionExecClearTuple
* ExecClearTuple - clear the slot's contents */
src/include/executor/tuptable.h:426
↓ 281 callersMethodUsed
contrib/pax_storage/src/cpp/storage/pax_buffer.h:107
↓ 281 callersFunctionprintfPQExpBuffer
* printfPQExpBuffer * Format text data under the control of fmt (an sprintf-like format string) * and insert it into str. More space is allocated t
src/interfaces/libpq/pqexpbuffer.c:243
↓ 277 callersFunctionSysCacheGetAttr
* SysCacheGetAttr * * Given a tuple previously fetched by SearchSysCache(), * extract a specific attribute. * * This is equivalent to using hea
src/backend/utils/cache/syscache.c:1616
↓ 270 callersFunctionprint
* print * print contents of Node to stdout */
src/backend/nodes/print.c:35
↓ 268 callersFunctionexprType
* exprType - * returns the Oid of the type of the expression's result. */
src/backend/nodes/nodeFuncs.c:42
next →1–100 of 50,827, ranked by callers