随笔分类 -  database / postgresql

1 2 下一页

摘要:The email lists: may be a buffer overflow problem [ecpg bug]: can not use single '*' in multi-line comment after c preprocessor directives 阅读全文

posted @ 2024-09-26 10:39 winter-loo 阅读(15) 评论(0) 推荐(0)

摘要:(classid,objid,objsubid) depends on (refclassid,refobjid,refobjsubid). -- which objects does relation 88088 depends on select * from pg_depend where c 阅读全文

posted @ 2024-08-15 21:22 winter-loo 阅读(15) 评论(0) 推荐(0)

摘要:How does sig_atomic_t actually work? Key Takeways: sig_atomic_t is not an atomic data type used in the context of a signal handler An integral type th 阅读全文

posted @ 2024-08-13 10:45 winter-loo 阅读(37) 评论(0) 推荐(0)

摘要:kinds of frame definition implementation https://ldd.cool/pdf/windowagg.pdf 阅读全文

posted @ 2024-08-10 20:56 winter-loo 阅读(21) 评论(0) 推荐(0)

摘要:From comments of struct JunkFilter: A junk attribute is an attribute in a tuple that is needed only for storing intermediate information in the execut 阅读全文

posted @ 2024-07-26 17:27 winter-loo 阅读(24) 评论(0) 推荐(0)

摘要:https://www.postgresql.eu/events/pgconfeu2017/schedule/session/1585-be-pro-activ-on-postgresql-performance/ https://www.postgresql.eu/events/pgconfeu2 阅读全文

posted @ 2024-07-20 03:38 winter-loo 阅读(16) 评论(0) 推荐(0)

摘要:What NamedTuplestore 按字面意思理解,就是一个有名字的 tuplestore, 那估计就不是一个正常的表。根据 PostgreSQL 的官方叫法,NamedTuplestoreScan 对应的表称为 Ephemeral Named Relation, 中文翻译为 短暂的命名关系. 阅读全文

posted @ 2024-07-08 09:51 winter-loo 阅读(70) 评论(0) 推荐(0)

摘要:One sentence summary A temporary table could reside within a temporary tablespace, utilizing a temporary name in a temporary schema or namespace. More 阅读全文

posted @ 2024-06-28 16:39 winter-loo 阅读(34) 评论(0) 推荐(0)

摘要:The following sql statements will trigger calling function GetExistingLocalJoinPath. setup CREATE EXTENSION postgres_fdw; CREATE SERVER foreign_server 阅读全文

posted @ 2024-05-29 20:03 winter-loo 阅读(22) 评论(0) 推荐(0)

摘要:The SQL select sum(sum(a)) from myt1 group by a; This note focuses only on sum(sum(a)) and it's about how postgres rejects the sql above. Notes sum(su 阅读全文

posted @ 2024-05-11 20:25 winter-loo 阅读(53) 评论(0) 推荐(0)

摘要:This note will introduce the workflow of parse.pl of the ecpg precompiler. Run the precompiler: perl parse.pl . ../../../backend/parser/gram.y workflo 阅读全文

posted @ 2024-04-19 11:35 winter-loo 阅读(22) 评论(0) 推荐(0)

摘要:The SQL select a from (select a from t); Overview from (select a from t) will map to one RangeTblEntry struct of the outter query. from t will map to 阅读全文

posted @ 2024-04-11 16:09 winter-loo 阅读(13) 评论(0) 推荐(0)

摘要:SQL CREATE TABLE measurement ( city_id int not null, logdate date not null, data text ) PARTITION BY RANGE (logdate); CREATE TABLE p1 PARTITION OF mea 阅读全文

posted @ 2024-03-26 00:33 winter-loo 阅读(45) 评论(0) 推荐(0)

摘要:Overview In this article, I will inspect the postgresql code to find out the implementation of alter table command, specifically, the add column subco 阅读全文

posted @ 2024-03-23 18:37 winter-loo 阅读(39) 评论(0) 推荐(0)

摘要:The SQL select xmin::text::int8; grammar a_expr: a_expr TYPECAST Typename { $$ = makeTypeCast($1, $3, @2); } static Node * makeTypeCast(Node *arg, Typ 阅读全文

posted @ 2024-03-08 09:20 winter-loo 阅读(29) 评论(0) 推荐(0)

摘要:![image](https://img2024.cnblogs.com/blog/731236/202402/731236-20240229204346235-1972136754.png) 阅读全文

posted @ 2024-02-29 20:44 winter-loo 阅读(7) 评论(0) 推荐(0)

摘要:based on postgres commit b96115acb8a0e08a46877c2b8ef2a7b5560b371b The SQL CREATE OR REPLACE FUNCTION demo_fors() RETURNS VOID AS $$ DECLARE a RECORD; 阅读全文

posted @ 2024-02-06 12:10 winter-loo 阅读(61) 评论(0) 推荐(0)

摘要:postgre version 17(commit hash: a17aa50d67bad4ee39a94988c679d2c2fed0e934) The SQL CREATE FUNCTION process_orders() RETURNS void AS $$ DECLARE c record 阅读全文

posted @ 2024-01-30 20:06 winter-loo 阅读(58) 评论(0) 推荐(0)

摘要:what is ‘query jumbling’? SUMMARY: it’s a mechanism for calculating query id. DETAIL: PostgreSQL extracts the node->type of each Node in the raw query 阅读全文

posted @ 2024-01-12 11:23 winter-loo 阅读(65) 评论(0) 推荐(0)

1 2 下一页

导航