├── main.c ├── audio ├── audio.c ├── audio.h ├── README.md └── CMakeLists.txt ├── plot ├── README.md └── CMakeLists.txt ├── network ├── udp.c └── CMakeLists.txt ├── sources ├── data.txt ├── input.txt ├── output.txt ├── updated_file.csv ├── output_json_example.json ├── locked_file.txt ├── output.xml ├── Capture1.PNG ├── Capture2.PNG ├── Capture3.PNG ├── Capture4.PNG ├── Capture5.PNG ├── Capture6.PNG ├── Capture7.PNG ├── Capture8.PNG ├── Capture9.PNG ├── Capture10.PNG ├── Capture11.PNG ├── Capture12.PNG ├── Capture13.PNG ├── Capture14.PNG ├── Capture15.PNG ├── Capture16.PNG ├── Capture17.PNG ├── Capture18.PNG ├── Capture19.PNG ├── Capture20.PNG ├── Capture21.PNG ├── pg_csv.csv ├── example_unicode.txt ├── catalog.xml ├── test_json.json ├── text_uni.txt ├── merged_config.ini ├── config_with_comments.ini ├── encrypted_config.ini ├── converted_json.json ├── config.ini ├── dynamic_config_modified.ini ├── dynamic_config.ini └── modified_config.ini ├── dependency ├── include │ ├── postgresql │ │ ├── server │ │ │ ├── port │ │ │ │ ├── netbsd.h │ │ │ │ ├── openbsd.h │ │ │ │ ├── win32 │ │ │ │ │ ├── grp.h │ │ │ │ │ ├── dlfcn.h │ │ │ │ │ ├── pwd.h │ │ │ │ │ ├── sys │ │ │ │ │ │ ├── select.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ ├── un.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ └── socket.h │ │ │ │ │ ├── arpa │ │ │ │ │ │ └── inet.h │ │ │ │ │ ├── netinet │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ └── tcp.h │ │ │ │ │ └── netdb.h │ │ │ │ ├── win32_msvc │ │ │ │ │ ├── sys │ │ │ │ │ │ ├── file.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ └── param.h │ │ │ │ │ ├── utime.h │ │ │ │ │ ├── unistd.h │ │ │ │ │ └── dirent.h │ │ │ │ ├── darwin.h │ │ │ │ ├── freebsd.h │ │ │ │ ├── aix.h │ │ │ │ ├── atomics │ │ │ │ │ └── arch-hppa.h │ │ │ │ ├── solaris.h │ │ │ │ └── cygwin.h │ │ │ ├── pg_config_ext.h │ │ │ ├── plpy_exec.h │ │ │ ├── snowball │ │ │ │ └── libstemmer │ │ │ │ │ ├── stem_UTF_8_dutch.h │ │ │ │ │ ├── stem_UTF_8_greek.h │ │ │ │ │ ├── stem_UTF_8_hindi.h │ │ │ │ │ ├── stem_UTF_8_irish.h │ │ │ │ │ ├── stem_UTF_8_tamil.h │ │ │ │ │ ├── stem_UTF_8_arabic.h │ │ │ │ │ ├── stem_UTF_8_basque.h │ │ │ │ │ ├── stem_UTF_8_catalan.h │ │ │ │ │ ├── stem_UTF_8_danish.h │ │ │ │ │ ├── stem_UTF_8_english.h │ │ │ │ │ ├── stem_UTF_8_finnish.h │ │ │ │ │ ├── stem_UTF_8_french.h │ │ │ │ │ ├── stem_UTF_8_german.h │ │ │ │ │ ├── stem_UTF_8_italian.h │ │ │ │ │ ├── stem_UTF_8_nepali.h │ │ │ │ │ ├── stem_UTF_8_porter.h │ │ │ │ │ ├── stem_UTF_8_russian.h │ │ │ │ │ ├── stem_UTF_8_serbian.h │ │ │ │ │ ├── stem_UTF_8_spanish.h │ │ │ │ │ ├── stem_UTF_8_swedish.h │ │ │ │ │ ├── stem_UTF_8_turkish.h │ │ │ │ │ ├── stem_UTF_8_yiddish.h │ │ │ │ │ ├── stem_KOI8_R_russian.h │ │ │ │ │ ├── stem_UTF_8_armenian.h │ │ │ │ │ ├── stem_UTF_8_romanian.h │ │ │ │ │ ├── stem_UTF_8_hungarian.h │ │ │ │ │ ├── stem_UTF_8_norwegian.h │ │ │ │ │ ├── stem_ISO_8859_1_dutch.h │ │ │ │ │ ├── stem_ISO_8859_1_irish.h │ │ │ │ │ ├── stem_UTF_8_indonesian.h │ │ │ │ │ ├── stem_UTF_8_lithuanian.h │ │ │ │ │ ├── stem_UTF_8_portuguese.h │ │ │ │ │ ├── stem_ISO_8859_1_basque.h │ │ │ │ │ ├── stem_ISO_8859_1_catalan.h │ │ │ │ │ ├── stem_ISO_8859_1_danish.h │ │ │ │ │ ├── stem_ISO_8859_1_english.h │ │ │ │ │ ├── stem_ISO_8859_1_finnish.h │ │ │ │ │ ├── stem_ISO_8859_1_french.h │ │ │ │ │ ├── stem_ISO_8859_1_german.h │ │ │ │ │ ├── stem_ISO_8859_1_italian.h │ │ │ │ │ ├── stem_ISO_8859_1_porter.h │ │ │ │ │ ├── stem_ISO_8859_1_spanish.h │ │ │ │ │ ├── stem_ISO_8859_1_swedish.h │ │ │ │ │ ├── stem_ISO_8859_2_romanian.h │ │ │ │ │ ├── stem_ISO_8859_1_norwegian.h │ │ │ │ │ ├── stem_ISO_8859_2_hungarian.h │ │ │ │ │ ├── stem_ISO_8859_1_indonesian.h │ │ │ │ │ ├── stem_ISO_8859_1_portuguese.h │ │ │ │ │ └── api.h │ │ │ ├── pg_trace.h │ │ │ ├── common │ │ │ │ ├── username.h │ │ │ │ ├── config_info.h │ │ │ │ ├── link-canary.h │ │ │ │ ├── base64.h │ │ │ │ ├── sha1.h │ │ │ │ ├── controldata_utils.h │ │ │ │ ├── percentrepl.h │ │ │ │ ├── archive.h │ │ │ │ ├── restricted_token.h │ │ │ │ ├── keywords.h │ │ │ │ ├── saslprep.h │ │ │ │ └── ip.h │ │ │ ├── lib │ │ │ │ ├── knapsack.h │ │ │ │ ├── integerset.h │ │ │ │ └── bloomfilter.h │ │ │ ├── plpy_plpymodule.h │ │ │ ├── postmaster │ │ │ │ ├── fork_process.h │ │ │ │ ├── auxprocess.h │ │ │ │ └── walwriter.h │ │ │ ├── utils │ │ │ │ ├── help_config.h │ │ │ │ ├── dynahash.h │ │ │ │ ├── relfilenumbermap.h │ │ │ │ ├── cash.h │ │ │ │ ├── bytea.h │ │ │ │ ├── spccache.h │ │ │ │ ├── usercontext.h │ │ │ │ ├── attoptcache.h │ │ │ │ ├── pg_rusage.h │ │ │ │ ├── xid8.h │ │ │ │ ├── conffiles.h │ │ │ │ └── combocid.h │ │ │ ├── plpy_util.h │ │ │ ├── storage │ │ │ │ ├── item.h │ │ │ │ ├── copydir.h │ │ │ │ ├── checksum.h │ │ │ │ ├── reinit.h │ │ │ │ └── indexfsm.h │ │ │ ├── commands │ │ │ │ ├── discard.h │ │ │ │ ├── lockcmds.h │ │ │ │ ├── conversioncmds.h │ │ │ │ ├── proclang.h │ │ │ │ ├── view.h │ │ │ │ ├── collationcmds.h │ │ │ │ └── schemacmds.h │ │ │ ├── plpy_cursorobject.h │ │ │ ├── tcop │ │ │ │ └── fastpath.h │ │ │ ├── plpy_planobject.h │ │ │ ├── rewrite │ │ │ │ ├── rewriteRemove.h │ │ │ │ ├── rewriteSearchCycle.h │ │ │ │ └── rewriteSupport.h │ │ │ ├── optimizer │ │ │ │ ├── orclauses.h │ │ │ │ ├── inherit.h │ │ │ │ └── joininfo.h │ │ │ ├── parser │ │ │ │ ├── parse_merge.h │ │ │ │ ├── parse_enr.h │ │ │ │ ├── parse_cte.h │ │ │ │ ├── parse_expr.h │ │ │ │ ├── scansup.h │ │ │ │ ├── parse_collate.h │ │ │ │ └── parse_param.h │ │ │ ├── fe_utils │ │ │ │ ├── archive.h │ │ │ │ ├── query_utils.h │ │ │ │ ├── cancel.h │ │ │ │ ├── recovery_gen.h │ │ │ │ ├── option_utils.h │ │ │ │ └── mbprint.h │ │ │ ├── plpy_resultobject.h │ │ │ ├── executor │ │ │ │ ├── nodeLimit.h │ │ │ │ ├── nodeSetOp.h │ │ │ │ ├── nodeUnique.h │ │ │ │ ├── nodeCtescan.h │ │ │ │ ├── nodeTidscan.h │ │ │ │ ├── nodeGroup.h │ │ │ │ ├── nodeLockRows.h │ │ │ │ ├── nodeNestloop.h │ │ │ │ ├── nodeMergejoin.h │ │ │ │ ├── nodeProjectSet.h │ │ │ │ ├── nodeSamplescan.h │ │ │ │ ├── nodeValuesscan.h │ │ │ │ ├── nodeMergeAppend.h │ │ │ │ ├── nodeWindowAgg.h │ │ │ │ ├── nodeFunctionscan.h │ │ │ │ ├── nodeSubqueryscan.h │ │ │ │ ├── nodeBitmapOr.h │ │ │ │ ├── nodeGather.h │ │ │ │ ├── nodeTableFuncscan.h │ │ │ │ ├── nodeWorktablescan.h │ │ │ │ ├── nodeTidrangescan.h │ │ │ │ ├── nodeBitmapAnd.h │ │ │ │ ├── nodeRecursiveunion.h │ │ │ │ ├── nodeResult.h │ │ │ │ ├── nodeMaterial.h │ │ │ │ ├── nodeNamedtuplestorescan.h │ │ │ │ ├── nodeBitmapIndexscan.h │ │ │ │ ├── nodeGatherMerge.h │ │ │ │ ├── execAsync.h │ │ │ │ ├── tstoreReceiver.h │ │ │ │ └── nodeSubplan.h │ │ │ ├── libpq │ │ │ │ ├── libpq-fs.h │ │ │ │ ├── pqmq.h │ │ │ │ ├── be-gssapi-common.h │ │ │ │ ├── ifaddr.h │ │ │ │ └── be-fsstubs.h │ │ │ ├── mb │ │ │ │ └── stringinfo_mb.h │ │ │ ├── access │ │ │ │ ├── printsimple.h │ │ │ │ ├── gistscan.h │ │ │ │ ├── syncscan.h │ │ │ │ ├── sysattr.h │ │ │ │ ├── tupdesc_details.h │ │ │ │ ├── subtrans.h │ │ │ │ └── table.h │ │ │ ├── partitioning │ │ │ │ └── partdefs.h │ │ │ ├── archive │ │ │ │ └── shell_archive.h │ │ │ ├── plpy_subxactobject.h │ │ │ ├── getopt_long.h │ │ │ ├── postgres_fe.h │ │ │ ├── replication │ │ │ │ └── pgoutput.h │ │ │ ├── catalog │ │ │ │ ├── pg_largeobject_d.h │ │ │ │ ├── pg_attrdef_d.h │ │ │ │ ├── pg_foreign_table_d.h │ │ │ │ ├── pg_enum_d.h │ │ │ │ ├── pg_description_d.h │ │ │ │ ├── pg_seclabel_d.h │ │ │ │ ├── pg_inherits_d.h │ │ │ │ ├── pg_ts_config_map_d.h │ │ │ │ └── toasting.h │ │ │ └── plpy_main.h │ │ ├── informix │ │ │ └── esql │ │ │ │ ├── decimal.h │ │ │ │ └── datetime.h │ │ └── internal │ │ │ └── postgres_fe.h │ ├── openssl │ │ ├── ecdh.h │ │ ├── ecdsa.h │ │ ├── asn1_mac.h │ │ ├── kdferr.h │ │ ├── opensslconf.h │ │ ├── pem2.h │ │ ├── ossl_typ.h │ │ ├── buffererr.h │ │ ├── ssl2.h │ │ ├── objectserr.h │ │ ├── decodererr.h │ │ ├── encodererr.h │ │ ├── e_ostime.h │ │ ├── asyncerr.h │ │ ├── thread.h │ │ └── quic.h │ └── libpq │ │ └── libpq-fs.h └── lib │ ├── libssl.a │ ├── libcrypto.a │ ├── libpq.dll.a │ ├── libraylib.a │ ├── libssl.dll.a │ ├── libssl3.dll.a │ ├── libcrypto.dll.a │ ├── libraylib.dll.a │ └── libcryptohi.dll.a ├── deque └── CMakeLists.txt ├── map └── CMakeLists.txt ├── list └── CMakeLists.txt ├── span └── CMakeLists.txt ├── statistics └── CMakeLists.txt ├── xml └── CMakeLists.txt ├── cli └── CMakeLists.txt ├── fmt └── CMakeLists.txt ├── log └── CMakeLists.txt ├── random └── CMakeLists.txt ├── tuple └── CMakeLists.txt ├── array ├── CMakeLists.txt └── array.c ├── bigint └── CMakeLists.txt ├── bitset └── CMakeLists.txt ├── matrix └── CMakeLists.txt ├── time └── CMakeLists.txt ├── unittest └── CMakeLists.txt ├── vector └── CMakeLists.txt ├── hashmap └── CMakeLists.txt ├── stack └── CMakeLists.txt ├── encoding └── CMakeLists.txt ├── evalexpr └── CMakeLists.txt ├── queue └── CMakeLists.txt ├── bigfloat └── CMakeLists.txt ├── algorithm └── CMakeLists.txt ├── config └── CMakeLists.txt ├── json └── CMakeLists.txt ├── database └── CMakeLists.txt ├── dir └── CMakeLists.txt ├── string └── CMakeLists.txt ├── file_io └── CMakeLists.txt ├── forward_list └── CMakeLists.txt ├── secrets ├── CMakeLists.txt └── secrets.h ├── crypto └── CMakeLists.txt ├── numbers └── CMakeLists.txt ├── priority_queue └── CMakeLists.txt ├── date └── CMakeLists.txt ├── sysinfo └── CMakeLists.txt ├── csv └── CMakeLists.txt ├── serial_port └── CMakelists.txt ├── turtle └── CMakeLists.txt ├── regex └── CMakeLists.txt ├── sort └── CMakeLists.txt ├── concurrent ├── CMakeLists.txt └── thread_pool.h ├── LICENSE └── .gitignore /main.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /audio/audio.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /audio/audio.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /audio/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plot/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /audio/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /network/udp.c: -------------------------------------------------------------------------------- 1 | #include "udp.h" -------------------------------------------------------------------------------- /sources/data.txt: -------------------------------------------------------------------------------- 1 | 27 2 | 19.36 3 | امین -------------------------------------------------------------------------------- /sources/input.txt: -------------------------------------------------------------------------------- 1 | 27 19.65 "Hello World" -------------------------------------------------------------------------------- /sources/output.txt: -------------------------------------------------------------------------------- 1 | This is a line in a file 2 | -------------------------------------------------------------------------------- /sources/updated_file.csv: -------------------------------------------------------------------------------- 1 | 敎⁷敃汬ㄠ敎⁷敃汬㈠ 2 | 3 | -------------------------------------------------------------------------------- /sources/output_json_example.json: -------------------------------------------------------------------------------- 1 | {"age": 30, "name": "John Doe"} -------------------------------------------------------------------------------- /sources/locked_file.txt: -------------------------------------------------------------------------------- 1 | This is a test content. 2 | This is a test content. 3 | -------------------------------------------------------------------------------- /sources/output.xml: -------------------------------------------------------------------------------- 1 | XML Developer's Guide -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/netbsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/netbsd.h */ 2 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/openbsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/openbsd.h */ 2 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/grp.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/grp.h */ 2 | -------------------------------------------------------------------------------- /sources/Capture1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture1.PNG -------------------------------------------------------------------------------- /sources/Capture2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture2.PNG -------------------------------------------------------------------------------- /sources/Capture3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture3.PNG -------------------------------------------------------------------------------- /sources/Capture4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture4.PNG -------------------------------------------------------------------------------- /sources/Capture5.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture5.PNG -------------------------------------------------------------------------------- /sources/Capture6.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture6.PNG -------------------------------------------------------------------------------- /sources/Capture7.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture7.PNG -------------------------------------------------------------------------------- /sources/Capture8.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture8.PNG -------------------------------------------------------------------------------- /sources/Capture9.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture9.PNG -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/dlfcn.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/dlfcn.h */ 2 | -------------------------------------------------------------------------------- /dependency/lib/libssl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libssl.a -------------------------------------------------------------------------------- /sources/Capture10.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture10.PNG -------------------------------------------------------------------------------- /sources/Capture11.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture11.PNG -------------------------------------------------------------------------------- /sources/Capture12.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture12.PNG -------------------------------------------------------------------------------- /sources/Capture13.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture13.PNG -------------------------------------------------------------------------------- /sources/Capture14.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture14.PNG -------------------------------------------------------------------------------- /sources/Capture15.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture15.PNG -------------------------------------------------------------------------------- /sources/Capture16.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture16.PNG -------------------------------------------------------------------------------- /sources/Capture17.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture17.PNG -------------------------------------------------------------------------------- /sources/Capture18.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture18.PNG -------------------------------------------------------------------------------- /sources/Capture19.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture19.PNG -------------------------------------------------------------------------------- /sources/Capture20.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture20.PNG -------------------------------------------------------------------------------- /sources/Capture21.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/sources/Capture21.PNG -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/pwd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/pwd.h 3 | */ 4 | -------------------------------------------------------------------------------- /dependency/lib/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libcrypto.a -------------------------------------------------------------------------------- /dependency/lib/libpq.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libpq.dll.a -------------------------------------------------------------------------------- /dependency/lib/libraylib.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libraylib.a -------------------------------------------------------------------------------- /dependency/lib/libssl.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libssl.dll.a -------------------------------------------------------------------------------- /dependency/lib/libssl3.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libssl3.dll.a -------------------------------------------------------------------------------- /sources/pg_csv.csv: -------------------------------------------------------------------------------- 1 | brand,model,year 2 | Toyota,Corolla,2019 3 | Honda,Civic,2020 4 | Ford,Mustang,2021 5 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32_msvc/sys/file.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/sys/file.h */ 2 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32_msvc/sys/time.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/sys/time.h */ 2 | -------------------------------------------------------------------------------- /dependency/lib/libcrypto.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libcrypto.dll.a -------------------------------------------------------------------------------- /dependency/lib/libraylib.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libraylib.dll.a -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/sys/select.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/sys/select.h 3 | */ 4 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/sys/wait.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/sys/wait.h 3 | */ 4 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32_msvc/sys/param.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/sys/param.h */ 2 | -------------------------------------------------------------------------------- /dependency/lib/libcryptohi.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KaisenAmin/c_std/HEAD/dependency/lib/libcryptohi.dll.a -------------------------------------------------------------------------------- /sources/example_unicode.txt: -------------------------------------------------------------------------------- 1 | اضافه کردن متن به فایل 2 | 3 | اضافه کردن متن به فایل 4 | 5 | اضافه کردن متن به فایل 6 | 7 | -------------------------------------------------------------------------------- /sources/catalog.xml: -------------------------------------------------------------------------------- 1 | XML Developer's GuideAdvanced C Programming -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/arpa/inet.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/arpa/inet.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/netinet/in.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/netinet/in.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /deque/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(deque SHARED deque.c) 2 | target_include_directories(deque PUBLIC ${CMAKE_SOURCE_DIR}/deque) 3 | target_link_libraries(deque) -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32_msvc/utime.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/utime.h */ 2 | 3 | #include /* for non-unicode version */ 4 | -------------------------------------------------------------------------------- /map/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # map/CMakeLists.txt 2 | add_library(map SHARED map.c) 3 | target_include_directories(map PUBLIC ${CMAKE_SOURCE_DIR}/map) 4 | target_link_libraries(map) 5 | -------------------------------------------------------------------------------- /list/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # list/CMakeLists.txt 2 | add_library(list SHARED list.c) 3 | target_include_directories(list PUBLIC ${CMAKE_SOURCE_DIR}/list) 4 | target_link_libraries(list) 5 | -------------------------------------------------------------------------------- /span/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # span/CMakeLists.txt 2 | add_library(span SHARED span.c) 3 | target_include_directories(span PUBLIC ${CMAKE_SOURCE_DIR}/span) 4 | target_link_libraries(span) 5 | -------------------------------------------------------------------------------- /statistics/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # fmt/CMakeLists.txt 2 | add_library(statistics SHARED statistics.c) 3 | target_include_directories(statistics PUBLIC ${CMAKE_SOURCE_DIR}/statistics) 4 | -------------------------------------------------------------------------------- /xml/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # xml/CMakeLists.txt 2 | add_library(xml SHARED xml.c) 3 | target_include_directories(xml PUBLIC ${CMAKE_SOURCE_DIR}/xml) 4 | target_link_libraries(xml) 5 | 6 | -------------------------------------------------------------------------------- /cli/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # cli/CMakeLists.txt 2 | add_library(cli SHARED cli.c) 3 | target_include_directories(cli PUBLIC ${CMAKE_SOURCE_DIR}/cli) 4 | target_link_libraries(cli stdstring) 5 | -------------------------------------------------------------------------------- /fmt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # fmt/CMakeLists.txt 2 | add_library(fmt SHARED fmt.c) 3 | target_include_directories(fmt PUBLIC ${CMAKE_SOURCE_DIR}/fmt) 4 | target_link_libraries(fmt encoding stdstring) -------------------------------------------------------------------------------- /log/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # list/CMakeLists.txt 2 | add_library(log SHARED log.c) 3 | target_include_directories(log PUBLIC ${CMAKE_SOURCE_DIR}/log) 4 | target_link_libraries(log fileio stdstring) 5 | -------------------------------------------------------------------------------- /random/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # random/CMakeLists.txt 2 | add_library(random SHARED random.c) 3 | target_include_directories(random PUBLIC ${CMAKE_SOURCE_DIR}/random) 4 | target_link_libraries(random) -------------------------------------------------------------------------------- /tuple/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # tuple/CMakeLists.txt 2 | add_library(tuple SHARED tuple.c) 3 | target_include_directories(tuple PUBLIC ${CMAKE_SOURCE_DIR}/tuple) 4 | target_link_libraries(tuple) 5 | -------------------------------------------------------------------------------- /array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # array/CMakeLists.txt 2 | add_library(array SHARED array.c) 3 | target_include_directories(array PUBLIC ${CMAKE_SOURCE_DIR}/array) 4 | target_link_libraries(array vector) 5 | -------------------------------------------------------------------------------- /bigint/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # bigint/CMakeLists.txt 2 | add_library(bigint SHARED bigint.c) 3 | target_include_directories(bigint PUBLIC ${CMAKE_SOURCE_DIR}/bigint) 4 | target_link_libraries(bigint gmp) -------------------------------------------------------------------------------- /bitset/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # bitset/CMakeLists.txt 2 | add_library(bitset SHARED bitset.c) 3 | target_include_directories(bitset PUBLIC ${CMAKE_SOURCE_DIR}/bitset) 4 | target_link_libraries(bitset) 5 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/netdb.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/netdb.h */ 2 | #ifndef WIN32_NETDB_H 3 | #define WIN32_NETDB_H 4 | 5 | #include 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /matrix/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # matrix/CMakeLists.txt 2 | add_library(matrix SHARED matrix.c) 3 | target_include_directories(matrix PUBLIC ${CMAKE_SOURCE_DIR}/matrix) 4 | target_link_libraries(matrix) 5 | -------------------------------------------------------------------------------- /time/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # time/CMakeLists.txt 2 | add_library(stdtime SHARED std_time.c) 3 | target_include_directories(stdtime PUBLIC ${CMAKE_SOURCE_DIR}/time) 4 | target_link_libraries(stdtime) 5 | -------------------------------------------------------------------------------- /unittest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(unittest SHARED unittest.c) 2 | target_include_directories(unittest PUBLIC ${CMAKE_SOURCE_DIR}/unittest) 3 | target_link_libraries(unittest stdregex) 4 | 5 | -------------------------------------------------------------------------------- /vector/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # vector/CMakeLists.txt 2 | add_library(vector SHARED vector.c) 3 | target_include_directories(vector PUBLIC ${CMAKE_SOURCE_DIR}/vector) 4 | target_link_libraries(vector) 5 | -------------------------------------------------------------------------------- /hashmap/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # hashmap/CMakeLists.txt 2 | add_library(hashmap SHARED hashmap.c) 3 | target_include_directories(hashmap PUBLIC ${CMAKE_SOURCE_DIR}/hashmap) 4 | target_link_libraries(hashmap) -------------------------------------------------------------------------------- /stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # stack/CMakeLists.txt 2 | add_library(stack SHARED stack.c) 3 | target_include_directories(stack PUBLIC ${CMAKE_SOURCE_DIR}/stack) 4 | target_link_libraries(stack fmt vector) 5 | -------------------------------------------------------------------------------- /encoding/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # encoding/CMakeLists.txt 2 | add_library(encoding SHARED encoding.c) 3 | target_include_directories(encoding PUBLIC ${CMAKE_SOURCE_DIR}/encoding) 4 | target_link_libraries(encoding) -------------------------------------------------------------------------------- /evalexpr/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # evalexpr/CMakeLists.txt 2 | add_library(evalexpr SHARED evalexpr.c) 3 | target_include_directories(evalexpr PUBLIC ${CMAKE_SOURCE_DIR}/evalexpr) 4 | target_link_libraries(evalexpr) -------------------------------------------------------------------------------- /queue/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # queue/CMakeLists.txt 2 | add_library(queue SHARED queue.c) 3 | target_include_directories(queue PUBLIC ${CMAKE_SOURCE_DIR}/queue) 4 | target_link_libraries(queue vector algorithm) 5 | -------------------------------------------------------------------------------- /bigfloat/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # bigfloat/CMakeLists.txt 2 | add_library(bigfloat SHARED bigfloat.c) 3 | target_include_directories(bigfloat PUBLIC ${CMAKE_SOURCE_DIR}/bigfloat) 4 | target_link_libraries(bigfloat MPFR) -------------------------------------------------------------------------------- /algorithm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # algorithm/CMakeLists.txt 2 | add_library(algorithm SHARED algorithm.c) 3 | target_include_directories(algorithm PUBLIC ${CMAKE_SOURCE_DIR}/algorithm) 4 | target_link_libraries(algorithm) 5 | -------------------------------------------------------------------------------- /config/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # config/CMakeLists.txt 2 | add_library(config SHARED config.c) 3 | target_include_directories(config PUBLIC ${CMAKE_SOURCE_DIR}/config) 4 | target_link_libraries(config fmt stdstring fileio) 5 | -------------------------------------------------------------------------------- /json/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # json/CMakeLists.txt 2 | add_library(json SHARED json.c) 3 | target_include_directories(json PUBLIC ${CMAKE_SOURCE_DIR}/json) 4 | target_link_libraries(json stdstring fmt fileio vector map) 5 | -------------------------------------------------------------------------------- /database/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # database/CMakeLists.txt 2 | add_library(database SHARED postgres.c) 3 | target_include_directories(database PUBLIC ${CMAKE_SOURCE_DIR}/database) 4 | target_link_libraries(database stdstring pq) 5 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/netinet/tcp.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32/netinet/tcp.h */ 2 | #ifndef WIN32_NETINET_TCP_H 3 | #define WIN32_NETINET_TCP_H 4 | 5 | #include 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /array/array.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Amin Tahmasebi 3 | * @date 2023 4 | * @class Array 5 | */ 6 | 7 | #include 8 | #include 9 | #include "array.h" 10 | #include "../fmt/fmt.h" 11 | 12 | 13 | -------------------------------------------------------------------------------- /dir/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # vector/CMakeLists.txt 2 | add_library(dir SHARED dir.c) 3 | target_include_directories(dir PUBLIC ${CMAKE_SOURCE_DIR}/dir) 4 | target_link_libraries(dir fmt vector stdstring encoding stdcrypto fileio Shlwapi) 5 | -------------------------------------------------------------------------------- /string/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Create a shared library from std_string.c 2 | add_library(stdstring SHARED std_string.c) 3 | target_include_directories(stdstring PUBLIC ${CMAKE_SOURCE_DIR}/string) 4 | target_link_libraries(stdstring) 5 | -------------------------------------------------------------------------------- /file_io/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(fileio SHARED 2 | file_writer.c 3 | file_reader.c 4 | ) 5 | 6 | target_include_directories(fileio PUBLIC ${CMAKE_SOURCE_DIR}/file_io) 7 | target_link_libraries(fileio fmt stdstring encoding) 8 | -------------------------------------------------------------------------------- /forward_list/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # forwardlist/CMakeLists.txt 2 | add_library(forwardlist SHARED forward_list.c) 3 | target_include_directories(forwardlist PUBLIC ${CMAKE_SOURCE_DIR}/forward_list) 4 | target_link_libraries(forwardlist) 5 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/darwin.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/darwin.h */ 2 | 3 | #define __darwin__ 1 4 | 5 | #if HAVE_DECL_F_FULLFSYNC /* not present before macOS 10.3 */ 6 | #define HAVE_FSYNC_WRITETHROUGH 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /secrets/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # secrets/CMakeLists.txt 2 | add_library(secrets SHARED secrets.c) 3 | target_include_directories(secrets PUBLIC ${CMAKE_SOURCE_DIR}/secrets) 4 | 5 | if (WIN32) 6 | target_link_libraries(secrets bcrypt) 7 | endif() -------------------------------------------------------------------------------- /crypto/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(stdcrypto SHARED crypto.c) 2 | 3 | # Include directories where the header files are located 4 | target_include_directories(stdcrypto PUBLIC ${CMAKE_SOURCE_DIR}/crypto) 5 | target_link_libraries(stdcrypto ssl crypto) -------------------------------------------------------------------------------- /numbers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # CMakeLists.txt for numbers module (header-only) 2 | 3 | # Add the numbers directory as an include directory 4 | add_library(numbers INTERFACE) 5 | target_include_directories(numbers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) 6 | -------------------------------------------------------------------------------- /priority_queue/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # priority_queue/CMakeLists.txt 2 | add_library(priority_queue SHARED priority_queue.c) 3 | target_include_directories(priority_queue PUBLIC ${CMAKE_SOURCE_DIR}/priority_queue) 4 | target_link_libraries(priority_queue vector) 5 | -------------------------------------------------------------------------------- /date/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(date SHARED date.c) 2 | 3 | # Include directories where the header files are located 4 | target_include_directories(date PUBLIC ${CMAKE_SOURCE_DIR}/date) 5 | 6 | # Link against the necessary OpenSSL libraries 7 | target_link_libraries(date 8 | stdtime 9 | ) -------------------------------------------------------------------------------- /plot/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(plot SHARED plot.c) 2 | target_include_directories(plot PUBLIC ${CMAKE_SOURCE_DIR}/dependency/include) 3 | 4 | if (WIN32) 5 | target_link_libraries(plot raylib opengl32 gdi32 winmm) 6 | else() 7 | target_link_libraries(plot raylib GL X11 m pthread) 8 | endif() 9 | -------------------------------------------------------------------------------- /sysinfo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(sysinfo SHARED sysinfo.c) 2 | target_include_directories(sysinfo PUBLIC ${CMAKE_SOURCE_DIR}/sysinfo) 3 | 4 | if (WIN32) 5 | target_link_libraries(sysinfo ole32 bthprops ws2_32 iphlpapi vector) 6 | else() 7 | target_link_libraries(sysinfo m vector) 8 | endif() 9 | -------------------------------------------------------------------------------- /csv/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(csv SHARED csv.c) 2 | 3 | # Include directories where the header files are located 4 | target_include_directories(csv PUBLIC ${CMAKE_SOURCE_DIR}/csv) 5 | 6 | # Link against the necessary OpenSSL libraries 7 | target_link_libraries(csv 8 | stdstring 9 | fileio 10 | ) -------------------------------------------------------------------------------- /serial_port/CMakelists.txt: -------------------------------------------------------------------------------- 1 | # serial_port/CMakeLists.txt 2 | add_library(stdserial SHARED serial_port.c) 3 | target_include_directories(stdserial PUBLIC ${CMAKE_SOURCE_DIR}/serial_port) 4 | 5 | if (WIN32) 6 | target_link_libraries(stdserial setupapi) 7 | else() 8 | target_link_libraries(stdserial) 9 | endif() -------------------------------------------------------------------------------- /turtle/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(turtle SHARED turtle.c) 2 | target_include_directories(turtle PUBLIC ${CMAKE_SOURCE_DIR}/dependency/include) 3 | 4 | if (WIN32) 5 | target_link_libraries(turtle raylib opengl32 gdi32 winmm) 6 | else() 7 | target_link_libraries(turtle raylib GL X11 m pthread) 8 | endif() 9 | -------------------------------------------------------------------------------- /sources/test_json.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "John Doe", 3 | "age": 30, 4 | "is_student": false, 5 | "scores": [95, 85, 78], 6 | "address": { 7 | "street": "123 Main St", 8 | "city": "New York", 9 | "zip": null 10 | }, 11 | "hobbies": ["reading", "cycling", "photography"] 12 | } 13 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32_msvc/unistd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/win32_msvc/unistd.h */ 2 | 3 | /* 4 | * MSVC does not define these, nor does _fileno(stdin) etc reliably work 5 | * (returns -1 if stdin/out/err are closed). 6 | */ 7 | #define STDIN_FILENO 0 8 | #define STDOUT_FILENO 1 9 | #define STDERR_FILENO 2 10 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/freebsd.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/freebsd.h */ 2 | 3 | /* 4 | * Set the default wal_sync_method to fdatasync. xlogdefs.h's normal rules 5 | * would prefer open_datasync on FreeBSD 13+, but that is not a good choice on 6 | * many systems. 7 | */ 8 | #define PLATFORM_DEFAULT_SYNC_METHOD SYNC_METHOD_FDATASYNC 9 | -------------------------------------------------------------------------------- /regex/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Create a shared library for the regex implementation 2 | add_library(stdregex SHARED std_regex.c) 3 | target_include_directories(stdregex PUBLIC ${CMAKE_SOURCE_DIR}/regex) 4 | 5 | if(WIN32) 6 | target_link_libraries(stdregex pcre) 7 | else() 8 | target_link_libraries(stdregex pcre m) 9 | endif() 10 | 11 | 12 | -------------------------------------------------------------------------------- /sources/text_uni.txt: -------------------------------------------------------------------------------- 1 | Hello, this is a test text.سلام، این یک متن آزمایشی است.Name: John Doe, Age: 30, Occupation: Software Developer 2 | This is another line with number: 123.456000 3 | Name: John Doe, Age: 30, Occupation: Software Developer 4 | This is another line with number: 123.456000 5 | Name: John Doe, Age: 30, Occupation: Software Developer 6 | This is another line with number: 123.456000 7 | -------------------------------------------------------------------------------- /dependency/include/postgresql/informix/esql/decimal.h: -------------------------------------------------------------------------------- 1 | /* src/interfaces/ecpg/include/decimal.h */ 2 | 3 | #ifndef _ECPG_DECIMAL_H 4 | #define _ECPG_DECIMAL_H 5 | 6 | #include 7 | 8 | /* source created by ecpg which defines this */ 9 | #ifndef _ECPGLIB_H 10 | typedef decimal dec_t; 11 | #endif /* ndef _ECPGLIB_H */ 12 | 13 | #endif /* ndef _ECPG_DECIMAL_H */ 14 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/pg_config_ext.h: -------------------------------------------------------------------------------- 1 | /* src/include/pg_config_ext.h. Generated from pg_config_ext.h.in by configure. */ 2 | /* 3 | * src/include/pg_config_ext.h.in. This is generated manually, not by 4 | * autoheader, since we want to limit which symbols get defined here. 5 | */ 6 | 7 | /* Define to the name of a signed 64-bit integer type. */ 8 | #define PG_INT64_TYPE long long int 9 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_exec.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_exec.h 3 | */ 4 | 5 | #ifndef PLPY_EXEC_H 6 | #define PLPY_EXEC_H 7 | 8 | #include "plpy_procedure.h" 9 | 10 | extern Datum PLy_exec_function(FunctionCallInfo fcinfo, PLyProcedure *proc); 11 | extern HeapTuple PLy_exec_trigger(FunctionCallInfo fcinfo, PLyProcedure *proc); 12 | 13 | #endif /* PLPY_EXEC_H */ 14 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_dutch.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * dutch_UTF_8_create_env(void); 8 | extern void dutch_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int dutch_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_greek.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * greek_UTF_8_create_env(void); 8 | extern void greek_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int greek_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_hindi.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * hindi_UTF_8_create_env(void); 8 | extern void hindi_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int hindi_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_irish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * irish_UTF_8_create_env(void); 8 | extern void irish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int irish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_tamil.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * tamil_UTF_8_create_env(void); 8 | extern void tamil_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int tamil_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/openssl/ecdh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /dependency/include/openssl/ecdsa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/sys/un.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/sys/un.h 3 | */ 4 | #ifndef WIN32_SYS_UN_H 5 | #define WIN32_SYS_UN_H 6 | 7 | /* 8 | * Windows defines this structure in , but not all tool chains have 9 | * the header yet, so we define it here for now. 10 | */ 11 | struct sockaddr_un 12 | { 13 | unsigned short sun_family; 14 | char sun_path[108]; 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_arabic.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * arabic_UTF_8_create_env(void); 8 | extern void arabic_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int arabic_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_basque.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * basque_UTF_8_create_env(void); 8 | extern void basque_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int basque_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_catalan.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * catalan_UTF_8_create_env(void); 8 | extern void catalan_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int catalan_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_danish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * danish_UTF_8_create_env(void); 8 | extern void danish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int danish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_english.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * english_UTF_8_create_env(void); 8 | extern void english_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int english_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_finnish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * finnish_UTF_8_create_env(void); 8 | extern void finnish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int finnish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_french.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * french_UTF_8_create_env(void); 8 | extern void french_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int french_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_german.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * german_UTF_8_create_env(void); 8 | extern void german_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int german_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_italian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * italian_UTF_8_create_env(void); 8 | extern void italian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int italian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_nepali.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * nepali_UTF_8_create_env(void); 8 | extern void nepali_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int nepali_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_porter.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * porter_UTF_8_create_env(void); 8 | extern void porter_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int porter_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_russian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * russian_UTF_8_create_env(void); 8 | extern void russian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int russian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_serbian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * serbian_UTF_8_create_env(void); 8 | extern void serbian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int serbian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_spanish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * spanish_UTF_8_create_env(void); 8 | extern void spanish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int spanish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_swedish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * swedish_UTF_8_create_env(void); 8 | extern void swedish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int swedish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_turkish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * turkish_UTF_8_create_env(void); 8 | extern void turkish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int turkish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_yiddish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * yiddish_UTF_8_create_env(void); 8 | extern void yiddish_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int yiddish_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/pg_trace.h: -------------------------------------------------------------------------------- 1 | /* ---------- 2 | * pg_trace.h 3 | * 4 | * Definitions for the PostgreSQL tracing framework 5 | * 6 | * Copyright (c) 2006-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/pg_trace.h 9 | * ---------- 10 | */ 11 | 12 | #ifndef PG_TRACE_H 13 | #define PG_TRACE_H 14 | 15 | #include "utils/probes.h" /* pgrminclude ignore */ 16 | 17 | #endif /* PG_TRACE_H */ 18 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_KOI8_R_russian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * russian_KOI8_R_create_env(void); 8 | extern void russian_KOI8_R_close_env(struct SN_env * z); 9 | 10 | extern int russian_KOI8_R_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_armenian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * armenian_UTF_8_create_env(void); 8 | extern void armenian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int armenian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_romanian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * romanian_UTF_8_create_env(void); 8 | extern void romanian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int romanian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/informix/esql/datetime.h: -------------------------------------------------------------------------------- 1 | /* src/interfaces/ecpg/include/datetime.h */ 2 | 3 | #ifndef _ECPG_DATETIME_H 4 | #define _ECPG_DATETIME_H 5 | 6 | #include 7 | 8 | /* source created by ecpg which defines these symbols */ 9 | #ifndef _ECPGLIB_H 10 | typedef timestamp dtime_t; 11 | typedef interval intrvl_t; 12 | #endif /* ndef _ECPGLIB_H */ 13 | 14 | #endif /* ndef _ECPG_DATETIME_H */ 15 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_hungarian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * hungarian_UTF_8_create_env(void); 8 | extern void hungarian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int hungarian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_norwegian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * norwegian_UTF_8_create_env(void); 8 | extern void norwegian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int norwegian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_dutch.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * dutch_ISO_8859_1_create_env(void); 8 | extern void dutch_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int dutch_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_irish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * irish_ISO_8859_1_create_env(void); 8 | extern void irish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int irish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_indonesian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * indonesian_UTF_8_create_env(void); 8 | extern void indonesian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int indonesian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_lithuanian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * lithuanian_UTF_8_create_env(void); 8 | extern void lithuanian_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int lithuanian_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_UTF_8_portuguese.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * portuguese_UTF_8_create_env(void); 8 | extern void portuguese_UTF_8_close_env(struct SN_env * z); 9 | 10 | extern int portuguese_UTF_8_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/username.h: -------------------------------------------------------------------------------- 1 | /* 2 | * username.h 3 | * lookup effective username 4 | * 5 | * Copyright (c) 2003-2023, PostgreSQL Global Development Group 6 | * 7 | * src/include/common/username.h 8 | */ 9 | #ifndef USERNAME_H 10 | #define USERNAME_H 11 | 12 | extern const char *get_user_name(char **errstr); 13 | extern const char *get_user_name_or_exit(const char *progname); 14 | 15 | #endif /* USERNAME_H */ 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_basque.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * basque_ISO_8859_1_create_env(void); 8 | extern void basque_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int basque_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_catalan.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * catalan_ISO_8859_1_create_env(void); 8 | extern void catalan_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int catalan_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_danish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * danish_ISO_8859_1_create_env(void); 8 | extern void danish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int danish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_english.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * english_ISO_8859_1_create_env(void); 8 | extern void english_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int english_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_finnish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * finnish_ISO_8859_1_create_env(void); 8 | extern void finnish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int finnish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_french.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * french_ISO_8859_1_create_env(void); 8 | extern void french_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int french_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_german.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * german_ISO_8859_1_create_env(void); 8 | extern void german_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int german_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_italian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * italian_ISO_8859_1_create_env(void); 8 | extern void italian_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int italian_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_porter.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * porter_ISO_8859_1_create_env(void); 8 | extern void porter_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int porter_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_spanish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * spanish_ISO_8859_1_create_env(void); 8 | extern void spanish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int spanish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_swedish.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * swedish_ISO_8859_1_create_env(void); 8 | extern void swedish_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int swedish_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/lib/knapsack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * knapsack.h 3 | * 4 | * Copyright (c) 2017-2023, PostgreSQL Global Development Group 5 | * 6 | * src/include/lib/knapsack.h 7 | */ 8 | #ifndef KNAPSACK_H 9 | #define KNAPSACK_H 10 | 11 | #include "nodes/bitmapset.h" 12 | 13 | extern Bitmapset *DiscreteKnapsack(int max_weight, int num_items, 14 | int *item_weights, double *item_values); 15 | 16 | #endif /* KNAPSACK_H */ 17 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_2_romanian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * romanian_ISO_8859_2_create_env(void); 8 | extern void romanian_ISO_8859_2_close_env(struct SN_env * z); 9 | 10 | extern int romanian_ISO_8859_2_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_norwegian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * norwegian_ISO_8859_1_create_env(void); 8 | extern void norwegian_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int norwegian_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_2_hungarian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * hungarian_ISO_8859_2_create_env(void); 8 | extern void hungarian_ISO_8859_2_close_env(struct SN_env * z); 9 | 10 | extern int hungarian_ISO_8859_2_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /network/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_library(network SHARED tcp.c udp.c http.c) 3 | 4 | # Specify the include directories for this library 5 | target_include_directories(network PUBLIC ${CMAKE_SOURCE_DIR}/network) 6 | 7 | target_link_libraries(network fmt ssl stdcrypto stdstring json) 8 | 9 | # Link platform-specific libraries 10 | if(WIN32) 11 | target_link_libraries(network ws2_32) 12 | else() 13 | target_link_libraries(network pthread) 14 | endif() 15 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_indonesian.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * indonesian_ISO_8859_1_create_env(void); 8 | extern void indonesian_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int indonesian_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/stem_ISO_8859_1_portuguese.h: -------------------------------------------------------------------------------- 1 | /* Generated by Snowball 2.2.0 - https://snowballstem.org/ */ 2 | 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | extern struct SN_env * portuguese_ISO_8859_1_create_env(void); 8 | extern void portuguese_ISO_8859_1_close_env(struct SN_env * z); 9 | 10 | extern int portuguese_ISO_8859_1_stem(struct SN_env * z); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /dependency/include/openssl/asn1_mac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #error "This file is obsolete; please update your software." 11 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/aix.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/aix.h 3 | */ 4 | #define CLASS_CONFLICT 5 | #define DISABLE_XOPEN_NLS 6 | 7 | /* 8 | * "IBM XL C/C++ for AIX, V12.1" miscompiles, for 32-bit, some inline 9 | * expansions of ginCompareItemPointers() "long long" arithmetic. To take 10 | * advantage of inlining, build a 64-bit PostgreSQL. 11 | */ 12 | #if defined(__ILP32__) && defined(__IBMC__) 13 | #define PG_FORCE_DISABLE_INLINE 14 | #endif 15 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_plpymodule.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_plpymodule.h 3 | */ 4 | 5 | #ifndef PLPY_PLPYMODULE_H 6 | #define PLPY_PLPYMODULE_H 7 | 8 | #include "plpython.h" 9 | #include "utils/hsearch.h" 10 | 11 | /* A hash table mapping sqlstates to exceptions, for speedy lookup */ 12 | extern HTAB *PLy_spi_exceptions; 13 | 14 | 15 | PyMODINIT_FUNC PyInit_plpy(void); 16 | extern void PLy_init_plpy(void); 17 | 18 | #endif /* PLPY_PLPYMODULE_H */ 19 | -------------------------------------------------------------------------------- /sort/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.10) 2 | 3 | # Create the sort library 4 | add_library(sort SHARED 5 | sort.c 6 | ) 7 | 8 | # Set target properties 9 | set_target_properties(sort PROPERTIES 10 | OUTPUT_NAME "sort" 11 | VERSION 1.0.0 12 | SOVERSION 1 13 | ) 14 | 15 | # Include directories 16 | target_include_directories(sort PUBLIC 17 | ${CMAKE_CURRENT_SOURCE_DIR} 18 | ) 19 | 20 | # Set compile definitions 21 | target_compile_definitions(sort PRIVATE 22 | sort_EXPORTS 23 | ) 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/sys/resource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Replacement for for Windows. 3 | */ 4 | #ifndef WIN32_SYS_RESOURCE_H 5 | #define WIN32_SYS_RESOURCE_H 6 | 7 | #include /* for struct timeval */ 8 | 9 | #define RUSAGE_SELF 0 10 | #define RUSAGE_CHILDREN (-1) 11 | 12 | struct rusage 13 | { 14 | struct timeval ru_utime; /* user time used */ 15 | struct timeval ru_stime; /* system time used */ 16 | }; 17 | 18 | extern int getrusage(int who, struct rusage *rusage); 19 | 20 | #endif /* WIN32_SYS_RESOURCE_H */ 21 | -------------------------------------------------------------------------------- /dependency/include/openssl/kdferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_KDFERR_H 11 | # define OPENSSL_KDFERR_H 12 | # pragma once 13 | 14 | #include 15 | 16 | #endif /* !defined(OPENSSL_KDFERR_H) */ 17 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/config_info.h: -------------------------------------------------------------------------------- 1 | /* 2 | * config_info.h 3 | * Common code for pg_config output 4 | * 5 | * Copyright (c) 2016-2023, PostgreSQL Global Development Group 6 | * 7 | * src/include/common/config_info.h 8 | */ 9 | #ifndef COMMON_CONFIG_INFO_H 10 | #define COMMON_CONFIG_INFO_H 11 | 12 | typedef struct ConfigData 13 | { 14 | char *name; 15 | char *setting; 16 | } ConfigData; 17 | 18 | extern ConfigData *get_configdata(const char *my_exec_path, 19 | size_t *configdata_len); 20 | 21 | #endif /* COMMON_CONFIG_INFO_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/postmaster/fork_process.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * fork_process.h 4 | * Exports from postmaster/fork_process.c. 5 | * 6 | * Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/postmaster/fork_process.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef FORK_PROCESS_H 13 | #define FORK_PROCESS_H 14 | 15 | extern pid_t fork_process(void); 16 | 17 | #endif /* FORK_PROCESS_H */ 18 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/help_config.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * help_config.h 4 | * Interface to the --help-config option of main.c 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/utils/help_config.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef HELP_CONFIG_H 13 | #define HELP_CONFIG_H 1 14 | 15 | extern void GucInfoMain(void) pg_attribute_noreturn(); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /concurrent/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(concurrent SHARED 2 | concurrent.c 3 | thread_pool.c 4 | ) 5 | 6 | target_include_directories(concurrent PUBLIC ${CMAKE_SOURCE_DIR}/concurrent) 7 | 8 | # Platform-specific configurations 9 | if(WIN32) 10 | target_compile_definitions(concurrent PRIVATE _TTHREAD_WIN32_) 11 | target_link_libraries(concurrent PRIVATE ws2_32 fmt) # Winsock library for network functions 12 | elseif(UNIX) 13 | target_compile_definitions(concurrent PRIVATE _TTHREAD_POSIX_) 14 | target_link_libraries(concurrent PRIVATE pthread fmt) 15 | endif() 16 | 17 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_util.h: -------------------------------------------------------------------------------- 1 | /*-------------------------- 2 | * common utility functions 3 | *-------------------------- 4 | */ 5 | 6 | #ifndef PLPY_UTIL_H 7 | #define PLPY_UTIL_H 8 | 9 | #include "plpython.h" 10 | 11 | extern PGDLLEXPORT PyObject *PLyUnicode_Bytes(PyObject *unicode); 12 | extern PGDLLEXPORT char *PLyUnicode_AsString(PyObject *unicode); 13 | 14 | extern PGDLLEXPORT PyObject *PLyUnicode_FromString(const char *s); 15 | extern PGDLLEXPORT PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size); 16 | 17 | #endif /* PLPY_UTIL_H */ 18 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/storage/item.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * item.h 4 | * POSTGRES disk item definitions. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/storage/item.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef ITEM_H 15 | #define ITEM_H 16 | 17 | typedef Pointer Item; 18 | 19 | #endif /* ITEM_H */ 20 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/link-canary.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * link-canary.h 4 | * Detect whether src/common functions came from frontend or backend. 5 | * 6 | * Copyright (c) 2018-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/common/link-canary.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef LINK_CANARY_H 13 | #define LINK_CANARY_H 14 | 15 | extern bool pg_link_canary_is_frontend(void); 16 | 17 | #endif /* LINK_CANARY_H */ 18 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/discard.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * discard.h 4 | * prototypes for discard.c. 5 | * 6 | * 7 | * Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * 9 | * src/include/commands/discard.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef DISCARD_H 14 | #define DISCARD_H 15 | 16 | #include "nodes/parsenodes.h" 17 | 18 | extern void DiscardCommand(DiscardStmt *stmt, bool isTopLevel); 19 | 20 | #endif /* DISCARD_H */ 21 | -------------------------------------------------------------------------------- /dependency/include/openssl/opensslconf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_OPENSSLCONF_H 11 | # define OPENSSL_OPENSSLCONF_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | 17 | #endif /* OPENSSL_OPENSSLCONF_H */ 18 | -------------------------------------------------------------------------------- /dependency/include/openssl/pem2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_PEM2_H 11 | # define OPENSSL_PEM2_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_PEM2_H 17 | # endif 18 | # include 19 | #endif 20 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/base64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * base64.h 3 | * Encoding and decoding routines for base64 without whitespace 4 | * support. 5 | * 6 | * Portions Copyright (c) 2001-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/common/base64.h 9 | */ 10 | #ifndef BASE64_H 11 | #define BASE64_H 12 | 13 | /* base 64 */ 14 | extern int pg_b64_encode(const char *src, int len, char *dst, int dstlen); 15 | extern int pg_b64_decode(const char *src, int len, char *dst, int dstlen); 16 | extern int pg_b64_enc_len(int srclen); 17 | extern int pg_b64_dec_len(int srclen); 18 | 19 | #endif /* BASE64_H */ 20 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_cursorobject.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_cursorobject.h 3 | */ 4 | 5 | #ifndef PLPY_CURSOROBJECT_H 6 | #define PLPY_CURSOROBJECT_H 7 | 8 | #include "plpy_typeio.h" 9 | 10 | 11 | typedef struct PLyCursorObject 12 | { 13 | PyObject_HEAD 14 | char *portalname; 15 | PLyDatumToOb result; 16 | bool closed; 17 | MemoryContext mcxt; 18 | } PLyCursorObject; 19 | 20 | extern void PLy_cursor_init_type(void); 21 | extern PyObject *PLy_cursor(PyObject *self, PyObject *args); 22 | extern PyObject *PLy_cursor_plan(PyObject *ob, PyObject *args); 23 | 24 | #endif /* PLPY_CURSOROBJECT_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/tcop/fastpath.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * fastpath.h 4 | * 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/tcop/fastpath.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef FASTPATH_H 14 | #define FASTPATH_H 15 | 16 | #include "lib/stringinfo.h" 17 | 18 | extern void HandleFunctionRequest(StringInfo msgBuf); 19 | 20 | #endif /* FASTPATH_H */ 21 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_planobject.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_planobject.h 3 | */ 4 | 5 | #ifndef PLPY_PLANOBJECT_H 6 | #define PLPY_PLANOBJECT_H 7 | 8 | #include "executor/spi.h" 9 | #include "plpy_typeio.h" 10 | 11 | 12 | typedef struct PLyPlanObject 13 | { 14 | PyObject_HEAD 15 | SPIPlanPtr plan; 16 | int nargs; 17 | Oid *types; 18 | Datum *values; 19 | PLyObToDatum *args; 20 | MemoryContext mcxt; 21 | } PLyPlanObject; 22 | 23 | extern void PLy_plan_init_type(void); 24 | extern PyObject *PLy_plan_new(void); 25 | extern bool is_PLyPlanObject(PyObject *ob); 26 | 27 | #endif /* PLPY_PLANOBJECT_H */ 28 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/dynahash.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * dynahash.h 4 | * POSTGRES dynahash.h file definitions 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * IDENTIFICATION 11 | * src/include/utils/dynahash.h 12 | * 13 | *------------------------------------------------------------------------- 14 | */ 15 | #ifndef DYNAHASH_H 16 | #define DYNAHASH_H 17 | 18 | extern int my_log2(long num); 19 | 20 | #endif /* DYNAHASH_H */ 21 | -------------------------------------------------------------------------------- /dependency/include/openssl/ossl_typ.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * The original was renamed to 12 | * 13 | * This header file only exists for compatibility reasons with older 14 | * applications which #include . 15 | */ 16 | # include 17 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/atomics/arch-hppa.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * arch-hppa.h 4 | * Atomic operations considerations specific to HPPA 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES: 10 | * 11 | * src/include/port/atomics/arch-hppa.h 12 | * 13 | *------------------------------------------------------------------------- 14 | */ 15 | 16 | /* HPPA doesn't do either read or write reordering */ 17 | #define pg_memory_barrier_impl() pg_compiler_barrier_impl() 18 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/rewrite/rewriteRemove.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * rewriteRemove.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/rewrite/rewriteRemove.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef REWRITEREMOVE_H 15 | #define REWRITEREMOVE_H 16 | 17 | #include "nodes/parsenodes.h" 18 | 19 | extern void RemoveRewriteRuleById(Oid ruleOid); 20 | 21 | #endif /* REWRITEREMOVE_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32/sys/socket.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/port/win32/sys/socket.h 3 | */ 4 | #ifndef WIN32_SYS_SOCKET_H 5 | #define WIN32_SYS_SOCKET_H 6 | 7 | /* 8 | * Unfortunately, of VC++ also defines ERROR. 9 | * To avoid the conflict, we include here and undefine ERROR 10 | * immediately. 11 | * 12 | * Note: Don't include directly. It causes compile errors. 13 | */ 14 | #include 15 | #include 16 | #include 17 | 18 | #undef ERROR 19 | #undef small 20 | 21 | /* Restore old ERROR value */ 22 | #ifdef PGERROR 23 | #define ERROR PGERROR 24 | #endif 25 | 26 | #endif /* WIN32_SYS_SOCKET_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/optimizer/orclauses.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * orclauses.h 4 | * prototypes for orclauses.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/optimizer/orclauses.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef ORCLAUSES_H 15 | #define ORCLAUSES_H 16 | 17 | #include "nodes/pathnodes.h" 18 | 19 | extern void extract_restriction_or_clauses(PlannerInfo *root); 20 | 21 | #endif /* ORCLAUSES_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/lockcmds.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * lockcmds.h 4 | * prototypes for lockcmds.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/commands/lockcmds.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef LOCKCMDS_H 15 | #define LOCKCMDS_H 16 | 17 | #include "nodes/parsenodes.h" 18 | 19 | /* 20 | * LOCK 21 | */ 22 | extern void LockTableCommand(LockStmt *lockstmt); 23 | 24 | #endif /* LOCKCMDS_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/sha1.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * sha1.h 4 | * Constants related to SHA1. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/common/sha1.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PG_SHA1_H 14 | #define PG_SHA1_H 15 | 16 | /* Size of result generated by SHA1 computation */ 17 | #define SHA1_DIGEST_LENGTH 20 18 | /* Block size for SHA1 */ 19 | #define SHA1_BLOCK_SIZE 64 20 | 21 | #endif /* PG_SHA1_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/storage/copydir.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * copydir.h 4 | * Copy a directory. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/storage/copydir.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef COPYDIR_H 14 | #define COPYDIR_H 15 | 16 | extern void copydir(const char *fromdir, const char *todir, bool recurse); 17 | extern void copy_file(const char *fromfile, const char *tofile); 18 | 19 | #endif /* COPYDIR_H */ 20 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/parse_merge.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * parse_merge.h 4 | * handle MERGE statement in parser 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/parser/parse_merge.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef PARSE_MERGE_H 15 | #define PARSE_MERGE_H 16 | 17 | #include "parser/parse_node.h" 18 | 19 | extern Query *transformMergeStmt(ParseState *pstate, MergeStmt *stmt); 20 | 21 | #endif /* PARSE_MERGE_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/solaris.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/solaris.h */ 2 | 3 | /* 4 | * Sort this out for all operating systems some time. The __xxx 5 | * symbols are defined on both GCC and Solaris CC, although GCC 6 | * doesn't document them. The __xxx__ symbols are only on GCC. 7 | */ 8 | #if defined(__i386) && !defined(__i386__) 9 | #define __i386__ 10 | #endif 11 | 12 | #if defined(__amd64) && !defined(__amd64__) 13 | #define __amd64__ 14 | #endif 15 | 16 | #if defined(__x86_64) && !defined(__x86_64__) 17 | #define __x86_64__ 18 | #endif 19 | 20 | #if defined(__sparc) && !defined(__sparc__) 21 | #define __sparc__ 22 | #endif 23 | 24 | #if defined(__i386__) 25 | #include 26 | #endif 27 | -------------------------------------------------------------------------------- /dependency/include/openssl/buffererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_BUFFERERR_H 12 | # define OPENSSL_BUFFERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * BUF reason codes. 23 | */ 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/controldata_utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | * controldata_utils.h 3 | * Common code for pg_controldata output 4 | * 5 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 6 | * Portions Copyright (c) 1994, Regents of the University of California 7 | * 8 | * src/include/common/controldata_utils.h 9 | */ 10 | #ifndef COMMON_CONTROLDATA_UTILS_H 11 | #define COMMON_CONTROLDATA_UTILS_H 12 | 13 | #include "catalog/pg_control.h" 14 | 15 | extern ControlFileData *get_controlfile(const char *DataDir, bool *crc_ok_p); 16 | extern void update_controlfile(const char *DataDir, 17 | ControlFileData *ControlFile, bool do_sync); 18 | 19 | #endif /* COMMON_CONTROLDATA_UTILS_H */ 20 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/percentrepl.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * percentrepl.h 4 | * Common routines to replace percent placeholders in strings 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/common/percentrepl.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PERCENTREPL_H 14 | #define PERCENTREPL_H 15 | 16 | extern char *replace_percent_placeholders(const char *instr, const char *param_name, const char *letters,...); 17 | 18 | #endif /* PERCENTREPL_H */ 19 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/postmaster/auxprocess.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * auxprocess.h 3 | * include file for functions related to auxiliary processes. 4 | * 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * IDENTIFICATION 10 | * src/include/postmaster/auxprocess.h 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef AUXPROCESS_H 14 | #define AUXPROCESS_H 15 | 16 | #include "miscadmin.h" 17 | 18 | extern void AuxiliaryProcessMain(AuxProcType auxtype) pg_attribute_noreturn(); 19 | 20 | #endif /* AUXPROCESS_H */ 21 | -------------------------------------------------------------------------------- /dependency/include/libpq/libpq-fs.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * libpq-fs.h 4 | * definitions for using Inversion file system routines (ie, large objects) 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/libpq/libpq-fs.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef LIBPQ_FS_H 15 | #define LIBPQ_FS_H 16 | 17 | /* 18 | * Read/write mode flags for inversion (large object) calls 19 | */ 20 | 21 | #define INV_WRITE 0x00020000 22 | #define INV_READ 0x00040000 23 | 24 | #endif /* LIBPQ_FS_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/fe_utils/archive.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * archive.h 4 | * Routines to access WAL archives from frontend 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/fe_utils/archive.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef FE_ARCHIVE_H 14 | #define FE_ARCHIVE_H 15 | 16 | extern int RestoreArchivedFile(const char *path, 17 | const char *xlogfname, 18 | off_t expectedSize, 19 | const char *restoreCommand); 20 | 21 | #endif /* FE_ARCHIVE_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_resultobject.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_resultobject.h 3 | */ 4 | 5 | #ifndef PLPY_RESULTOBJECT_H 6 | #define PLPY_RESULTOBJECT_H 7 | 8 | #include "access/tupdesc.h" 9 | 10 | #include "plpython.h" 11 | 12 | 13 | typedef struct PLyResultObject 14 | { 15 | PyObject_HEAD 16 | /* HeapTuple *tuples; */ 17 | PyObject *nrows; /* number of rows returned by query */ 18 | PyObject *rows; /* data rows, or empty list if no data 19 | * returned */ 20 | PyObject *status; /* query status, SPI_OK_*, or SPI_ERR_* */ 21 | TupleDesc tupdesc; 22 | } PLyResultObject; 23 | 24 | extern void PLy_result_init_type(void); 25 | extern PyObject *PLy_result_new(void); 26 | 27 | #endif /* PLPY_RESULTOBJECT_H */ 28 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/relfilenumbermap.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * relfilenumbermap.h 4 | * relfilenumber to oid mapping cache. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/utils/relfilenumbermap.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef RELFILENUMBERMAP_H 14 | #define RELFILENUMBERMAP_H 15 | 16 | #include "common/relpath.h" 17 | 18 | extern Oid RelidByRelfilenumber(Oid reltablespace, 19 | RelFileNumber relfilenumber); 20 | 21 | #endif /* RELFILENUMBERMAP_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/rewrite/rewriteSearchCycle.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * rewriteSearchCycle.h 4 | * Support for rewriting SEARCH and CYCLE clauses. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/rewrite/rewriteSearchCycle.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef REWRITESEARCHCYCLE_H 15 | #define REWRITESEARCHCYCLE_H 16 | 17 | #include "nodes/parsenodes.h" 18 | 19 | extern CommonTableExpr *rewriteSearchAndCycle(CommonTableExpr *cte); 20 | 21 | #endif /* REWRITESEARCHCYCLE_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/archive.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * archive.h 4 | * Common WAL archive routines 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/common/archive.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef ARCHIVE_H 14 | #define ARCHIVE_H 15 | 16 | extern char *BuildRestoreCommand(const char *restoreCommand, 17 | const char *xlogpath, /* %p */ 18 | const char *xlogfname, /* %f */ 19 | const char *lastRestartPointFname); /* %r */ 20 | 21 | #endif /* ARCHIVE_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeLimit.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeLimit.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeLimit.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODELIMIT_H 15 | #define NODELIMIT_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern LimitState *ExecInitLimit(Limit *node, EState *estate, int eflags); 20 | extern void ExecEndLimit(LimitState *node); 21 | extern void ExecReScanLimit(LimitState *node); 22 | 23 | #endif /* NODELIMIT_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeSetOp.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeSetOp.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeSetOp.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODESETOP_H 15 | #define NODESETOP_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern SetOpState *ExecInitSetOp(SetOp *node, EState *estate, int eflags); 20 | extern void ExecEndSetOp(SetOpState *node); 21 | extern void ExecReScanSetOp(SetOpState *node); 22 | 23 | #endif /* NODESETOP_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/libpq/libpq-fs.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * libpq-fs.h 4 | * definitions for using Inversion file system routines (ie, large objects) 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/libpq/libpq-fs.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef LIBPQ_FS_H 15 | #define LIBPQ_FS_H 16 | 17 | /* 18 | * Read/write mode flags for inversion (large object) calls 19 | */ 20 | 21 | #define INV_WRITE 0x00020000 22 | #define INV_READ 0x00040000 23 | 24 | #endif /* LIBPQ_FS_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/postmaster/walwriter.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * walwriter.h 4 | * Exports from postmaster/walwriter.c. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/postmaster/walwriter.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef _WALWRITER_H 13 | #define _WALWRITER_H 14 | 15 | #define DEFAULT_WAL_WRITER_FLUSH_AFTER ((1024 * 1024) / XLOG_BLCKSZ) 16 | 17 | /* GUC options */ 18 | extern PGDLLIMPORT int WalWriterDelay; 19 | extern PGDLLIMPORT int WalWriterFlushAfter; 20 | 21 | extern void WalWriterMain(void) pg_attribute_noreturn(); 22 | 23 | #endif /* _WALWRITER_H */ 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright 2023 Amin Tahmasebi 4 | 5 | Permission to use, copy, modify, and/or distribute this software for 6 | any purpose with or without fee is hereby granted, provided that the 7 | above copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 | WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 | WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 | AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 | PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 | PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/conversioncmds.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * conversioncmds.h 4 | * prototypes for conversioncmds.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/commands/conversioncmds.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | 15 | #ifndef CONVERSIONCMDS_H 16 | #define CONVERSIONCMDS_H 17 | 18 | #include "catalog/objectaddress.h" 19 | #include "nodes/parsenodes.h" 20 | 21 | extern ObjectAddress CreateConversionCommand(CreateConversionStmt *stmt); 22 | 23 | #endif /* CONVERSIONCMDS_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/cash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/include/utils/cash.h 3 | * 4 | * 5 | * cash.h 6 | * Written by D'Arcy J.M. Cain 7 | * 8 | * Functions to allow input and output of money normally but store 9 | * and handle it as 64 bit integer. 10 | */ 11 | 12 | #ifndef CASH_H 13 | #define CASH_H 14 | 15 | #include "fmgr.h" 16 | 17 | typedef int64 Cash; 18 | 19 | /* Cash is pass-by-reference if and only if int64 is */ 20 | static inline Cash 21 | DatumGetCash(Datum X) 22 | { 23 | return DatumGetInt64(X); 24 | } 25 | 26 | static inline Datum 27 | CashGetDatum(Cash X) 28 | { 29 | return Int64GetDatum(X); 30 | } 31 | 32 | #define PG_GETARG_CASH(n) DatumGetCash(PG_GETARG_DATUM(n)) 33 | #define PG_RETURN_CASH(x) return CashGetDatum(x) 34 | 35 | #endif /* CASH_H */ 36 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeUnique.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeUnique.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeUnique.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEUNIQUE_H 15 | #define NODEUNIQUE_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern UniqueState *ExecInitUnique(Unique *node, EState *estate, int eflags); 20 | extern void ExecEndUnique(UniqueState *node); 21 | extern void ExecReScanUnique(UniqueState *node); 22 | 23 | #endif /* NODEUNIQUE_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/bytea.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * bytea.h 4 | * Declarations for BYTEA data type support. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/utils/bytea.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef BYTEA_H 15 | #define BYTEA_H 16 | 17 | 18 | 19 | typedef enum 20 | { 21 | BYTEA_OUTPUT_ESCAPE, 22 | BYTEA_OUTPUT_HEX 23 | } ByteaOutputType; 24 | 25 | extern PGDLLIMPORT int bytea_output; /* ByteaOutputType, but int for GUC 26 | * enum */ 27 | 28 | #endif /* BYTEA_H */ 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeCtescan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeCtescan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeCtescan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODECTESCAN_H 15 | #define NODECTESCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern CteScanState *ExecInitCteScan(CteScan *node, EState *estate, int eflags); 20 | extern void ExecEndCteScan(CteScanState *node); 21 | extern void ExecReScanCteScan(CteScanState *node); 22 | 23 | #endif /* NODECTESCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeTidscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeTidscan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeTidscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODETIDSCAN_H 15 | #define NODETIDSCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern TidScanState *ExecInitTidScan(TidScan *node, EState *estate, int eflags); 20 | extern void ExecEndTidScan(TidScanState *node); 21 | extern void ExecReScanTidScan(TidScanState *node); 22 | 23 | #endif /* NODETIDSCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/openssl/ssl2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_SSL2_H 11 | # define OPENSSL_SSL2_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_SSL2_H 17 | # endif 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | # define SSL2_VERSION 0x0002 24 | 25 | # define SSL2_MT_CLIENT_HELLO 1 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/proclang.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * proclang.h 4 | * prototypes for proclang.c. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/commands/proclang.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PROCLANG_H 14 | #define PROCLANG_H 15 | 16 | #include "catalog/objectaddress.h" 17 | #include "nodes/parsenodes.h" 18 | 19 | extern ObjectAddress CreateProceduralLanguage(CreatePLangStmt *stmt); 20 | 21 | extern Oid get_language_oid(const char *langname, bool missing_ok); 22 | 23 | #endif /* PROCLANG_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeGroup.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeGroup.h 4 | * prototypes for nodeGroup.c 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeGroup.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEGROUP_H 15 | #define NODEGROUP_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern GroupState *ExecInitGroup(Group *node, EState *estate, int eflags); 20 | extern void ExecEndGroup(GroupState *node); 21 | extern void ExecReScanGroup(GroupState *node); 22 | 23 | #endif /* NODEGROUP_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/mb/stringinfo_mb.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * stringinfo_mb.h 4 | * multibyte support for StringInfo 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/mb/stringinfo_mb.h 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef STRINGINFO_MB_H 13 | #define STRINGINFO_MB_H 14 | 15 | 16 | #include "lib/stringinfo.h" 17 | 18 | /* 19 | * Multibyte-aware StringInfo support function. 20 | */ 21 | extern void appendStringInfoStringQuoted(StringInfo str, 22 | const char *s, int maxlen); 23 | 24 | #endif /* STRINGINFO_MB_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/parse_enr.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * parse_enr.h 4 | * Internal definitions for parser 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/parser/parse_enr.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef PARSE_ENR_H 15 | #define PARSE_ENR_H 16 | 17 | #include "parser/parse_node.h" 18 | 19 | extern bool name_matches_visible_ENR(ParseState *pstate, const char *refname); 20 | extern EphemeralNamedRelationMetadata get_visible_ENR(ParseState *pstate, const char *refname); 21 | 22 | #endif /* PARSE_ENR_H */ 23 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/storage/checksum.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * checksum.h 4 | * Checksum implementation for data pages. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/storage/checksum.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef CHECKSUM_H 14 | #define CHECKSUM_H 15 | 16 | #include "storage/block.h" 17 | 18 | /* 19 | * Compute the checksum for a Postgres page. The page must be aligned on a 20 | * 4-byte boundary. 21 | */ 22 | extern uint16 pg_checksum_page(char *page, BlockNumber blkno); 23 | 24 | #endif /* CHECKSUM_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/spccache.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * spccache.h 4 | * Tablespace cache. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/utils/spccache.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef SPCCACHE_H 14 | #define SPCCACHE_H 15 | 16 | extern void get_tablespace_page_costs(Oid spcid, float8 *spc_random_page_cost, 17 | float8 *spc_seq_page_cost); 18 | extern int get_tablespace_io_concurrency(Oid spcid); 19 | extern int get_tablespace_maintenance_io_concurrency(Oid spcid); 20 | 21 | #endif /* SPCCACHE_H */ 22 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/printsimple.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * printsimple.h 4 | * print simple tuples without catalog access 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/access/printsimple.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | 14 | #ifndef PRINTSIMPLE_H 15 | #define PRINTSIMPLE_H 16 | 17 | #include "tcop/dest.h" 18 | 19 | extern bool printsimple(TupleTableSlot *slot, DestReceiver *self); 20 | extern void printsimple_startup(DestReceiver *self, int operation, 21 | TupleDesc tupdesc); 22 | 23 | #endif /* PRINTSIMPLE_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/view.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * view.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/commands/view.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef VIEW_H 15 | #define VIEW_H 16 | 17 | #include "catalog/objectaddress.h" 18 | #include "nodes/parsenodes.h" 19 | 20 | extern ObjectAddress DefineView(ViewStmt *stmt, const char *queryString, 21 | int stmt_location, int stmt_len); 22 | 23 | extern void StoreViewQuery(Oid viewOid, Query *viewParse, bool replace); 24 | 25 | #endif /* VIEW_H */ 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeLockRows.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeLockRows.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeLockRows.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODELOCKROWS_H 15 | #define NODELOCKROWS_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern LockRowsState *ExecInitLockRows(LockRows *node, EState *estate, int eflags); 20 | extern void ExecEndLockRows(LockRowsState *node); 21 | extern void ExecReScanLockRows(LockRowsState *node); 22 | 23 | #endif /* NODELOCKROWS_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeNestloop.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeNestloop.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeNestloop.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODENESTLOOP_H 15 | #define NODENESTLOOP_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern NestLoopState *ExecInitNestLoop(NestLoop *node, EState *estate, int eflags); 20 | extern void ExecEndNestLoop(NestLoopState *node); 21 | extern void ExecReScanNestLoop(NestLoopState *node); 22 | 23 | #endif /* NODENESTLOOP_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeMergejoin.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeMergejoin.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeMergejoin.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEMERGEJOIN_H 15 | #define NODEMERGEJOIN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern MergeJoinState *ExecInitMergeJoin(MergeJoin *node, EState *estate, int eflags); 20 | extern void ExecEndMergeJoin(MergeJoinState *node); 21 | extern void ExecReScanMergeJoin(MergeJoinState *node); 22 | 23 | #endif /* NODEMERGEJOIN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/partitioning/partdefs.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * partdefs.h 4 | * Base definitions for partitioned table handling 5 | * 6 | * Copyright (c) 2007-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/partitioning/partdefs.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef PARTDEFS_H 13 | #define PARTDEFS_H 14 | 15 | 16 | typedef struct PartitionBoundInfoData *PartitionBoundInfo; 17 | 18 | typedef struct PartitionKeyData *PartitionKey; 19 | 20 | typedef struct PartitionBoundSpec PartitionBoundSpec; 21 | 22 | typedef struct PartitionDescData *PartitionDesc; 23 | 24 | typedef struct PartitionDirectoryData *PartitionDirectory; 25 | 26 | #endif /* PARTDEFS_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeProjectSet.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeProjectSet.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeProjectSet.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEPROJECTSET_H 15 | #define NODEPROJECTSET_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern ProjectSetState *ExecInitProjectSet(ProjectSet *node, EState *estate, int eflags); 20 | extern void ExecEndProjectSet(ProjectSetState *node); 21 | extern void ExecReScanProjectSet(ProjectSetState *node); 22 | 23 | #endif /* NODEPROJECTSET_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeSamplescan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeSamplescan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeSamplescan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODESAMPLESCAN_H 15 | #define NODESAMPLESCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern SampleScanState *ExecInitSampleScan(SampleScan *node, EState *estate, int eflags); 20 | extern void ExecEndSampleScan(SampleScanState *node); 21 | extern void ExecReScanSampleScan(SampleScanState *node); 22 | 23 | #endif /* NODESAMPLESCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeValuesscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeValuesscan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeValuesscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEVALUESSCAN_H 15 | #define NODEVALUESSCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern ValuesScanState *ExecInitValuesScan(ValuesScan *node, EState *estate, int eflags); 20 | extern void ExecEndValuesScan(ValuesScanState *node); 21 | extern void ExecReScanValuesScan(ValuesScanState *node); 22 | 23 | #endif /* NODEVALUESSCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/parse_cte.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * parse_cte.h 4 | * handle CTEs (common table expressions) in parser 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/parser/parse_cte.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef PARSE_CTE_H 15 | #define PARSE_CTE_H 16 | 17 | #include "parser/parse_node.h" 18 | 19 | extern List *transformWithClause(ParseState *pstate, WithClause *withClause); 20 | 21 | extern void analyzeCTETargetList(ParseState *pstate, CommonTableExpr *cte, 22 | List *tlist); 23 | 24 | #endif /* PARSE_CTE_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/win32_msvc/dirent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Headers for port/dirent.c, win32 native implementation of dirent functions 3 | * 4 | * src/include/port/win32_msvc/dirent.h 5 | */ 6 | 7 | #ifndef _WIN32VC_DIRENT_H 8 | #define _WIN32VC_DIRENT_H 9 | struct dirent 10 | { 11 | long d_ino; 12 | unsigned short d_reclen; 13 | unsigned char d_type; 14 | unsigned short d_namlen; 15 | char d_name[MAX_PATH]; 16 | }; 17 | 18 | typedef struct DIR DIR; 19 | 20 | DIR *opendir(const char *); 21 | struct dirent *readdir(DIR *); 22 | int closedir(DIR *); 23 | 24 | /* File types for 'd_type'. */ 25 | #define DT_UNKNOWN 0 26 | #define DT_FIFO 1 27 | #define DT_CHR 2 28 | #define DT_DIR 4 29 | #define DT_BLK 6 30 | #define DT_REG 8 31 | #define DT_LNK 10 32 | #define DT_SOCK 12 33 | #define DT_WHT 14 34 | #endif 35 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/archive/shell_archive.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * shell_archive.h 4 | * Exports for archiving via shell. 5 | * 6 | * Copyright (c) 2022-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/archive/shell_archive.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef _SHELL_ARCHIVE_H 13 | #define _SHELL_ARCHIVE_H 14 | 15 | #include "archive/archive_module.h" 16 | 17 | /* 18 | * Since the logic for archiving via a shell command is in the core server 19 | * and does not need to be loaded via a shared library, it has a special 20 | * initialization function. 21 | */ 22 | extern const ArchiveModuleCallbacks *shell_archive_init(void); 23 | 24 | #endif /* _SHELL_ARCHIVE_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeMergeAppend.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeMergeAppend.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeMergeAppend.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEMERGEAPPEND_H 15 | #define NODEMERGEAPPEND_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern MergeAppendState *ExecInitMergeAppend(MergeAppend *node, EState *estate, int eflags); 20 | extern void ExecEndMergeAppend(MergeAppendState *node); 21 | extern void ExecReScanMergeAppend(MergeAppendState *node); 22 | 23 | #endif /* NODEMERGEAPPEND_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/lib/integerset.h: -------------------------------------------------------------------------------- 1 | /* 2 | * integerset.h 3 | * In-memory data structure to hold a large set of integers efficiently 4 | * 5 | * Portions Copyright (c) 2012-2023, PostgreSQL Global Development Group 6 | * 7 | * src/include/lib/integerset.h 8 | */ 9 | #ifndef INTEGERSET_H 10 | #define INTEGERSET_H 11 | 12 | typedef struct IntegerSet IntegerSet; 13 | 14 | extern IntegerSet *intset_create(void); 15 | extern void intset_add_member(IntegerSet *intset, uint64 x); 16 | extern bool intset_is_member(IntegerSet *intset, uint64 x); 17 | 18 | extern uint64 intset_num_entries(IntegerSet *intset); 19 | extern uint64 intset_memory_usage(IntegerSet *intset); 20 | 21 | extern void intset_begin_iterate(IntegerSet *intset); 22 | extern bool intset_iterate_next(IntegerSet *intset, uint64 *next); 23 | 24 | #endif /* INTEGERSET_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/restricted_token.h: -------------------------------------------------------------------------------- 1 | /* 2 | * restricted_token.h 3 | * helper routine to ensure restricted token on Windows 4 | * 5 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 6 | * Portions Copyright (c) 1994, Regents of the University of California 7 | * 8 | * src/include/common/restricted_token.h 9 | */ 10 | #ifndef COMMON_RESTRICTED_TOKEN_H 11 | #define COMMON_RESTRICTED_TOKEN_H 12 | 13 | /* 14 | * On Windows make sure that we are running with a restricted token, 15 | * On other platforms do nothing. 16 | */ 17 | void get_restricted_token(void); 18 | 19 | #ifdef WIN32 20 | /* Create a restricted token and execute the specified process with it. */ 21 | HANDLE CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo); 22 | #endif 23 | 24 | #endif /* COMMON_RESTRICTED_TOKEN_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeWindowAgg.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeWindowAgg.h 4 | * prototypes for nodeWindowAgg.c 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeWindowAgg.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEWINDOWAGG_H 15 | #define NODEWINDOWAGG_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern WindowAggState *ExecInitWindowAgg(WindowAgg *node, EState *estate, int eflags); 20 | extern void ExecEndWindowAgg(WindowAggState *node); 21 | extern void ExecReScanWindowAgg(WindowAggState *node); 22 | 23 | #endif /* NODEWINDOWAGG_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeFunctionscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeFunctionscan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeFunctionscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEFUNCTIONSCAN_H 15 | #define NODEFUNCTIONSCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern FunctionScanState *ExecInitFunctionScan(FunctionScan *node, EState *estate, int eflags); 20 | extern void ExecEndFunctionScan(FunctionScanState *node); 21 | extern void ExecReScanFunctionScan(FunctionScanState *node); 22 | 23 | #endif /* NODEFUNCTIONSCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeSubqueryscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeSubqueryscan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeSubqueryscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODESUBQUERYSCAN_H 15 | #define NODESUBQUERYSCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern SubqueryScanState *ExecInitSubqueryScan(SubqueryScan *node, EState *estate, int eflags); 20 | extern void ExecEndSubqueryScan(SubqueryScanState *node); 21 | extern void ExecReScanSubqueryScan(SubqueryScanState *node); 22 | 23 | #endif /* NODESUBQUERYSCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/parse_expr.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * parse_expr.h 4 | * handle expressions in parser 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/parser/parse_expr.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PARSE_EXPR_H 14 | #define PARSE_EXPR_H 15 | 16 | #include "parser/parse_node.h" 17 | 18 | /* GUC parameters */ 19 | extern PGDLLIMPORT bool Transform_null_equals; 20 | 21 | extern Node *transformExpr(ParseState *pstate, Node *expr, ParseExprKind exprKind); 22 | 23 | extern const char *ParseExprKindName(ParseExprKind exprKind); 24 | 25 | #endif /* PARSE_EXPR_H */ 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/gistscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * gistscan.h 4 | * routines defined in access/gist/gistscan.c 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/access/gistscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef GISTSCAN_H 15 | #define GISTSCAN_H 16 | 17 | #include "access/amapi.h" 18 | 19 | extern IndexScanDesc gistbeginscan(Relation r, int nkeys, int norderbys); 20 | extern void gistrescan(IndexScanDesc scan, ScanKey key, int nkeys, 21 | ScanKey orderbys, int norderbys); 22 | extern void gistendscan(IndexScanDesc scan); 23 | 24 | #endif /* GISTSCAN_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/syncscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * syncscan.h 4 | * POSTGRES synchronous scan support functions. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/access/syncscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef SYNCSCAN_H 15 | #define SYNCSCAN_H 16 | 17 | #include "storage/block.h" 18 | #include "utils/relcache.h" 19 | 20 | extern void ss_report_location(Relation rel, BlockNumber location); 21 | extern BlockNumber ss_get_location(Relation rel, BlockNumber relnblocks); 22 | extern void SyncScanShmemInit(void); 23 | extern Size SyncScanShmemSize(void); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeBitmapOr.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeBitmapOr.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeBitmapOr.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEBITMAPOR_H 15 | #define NODEBITMAPOR_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern BitmapOrState *ExecInitBitmapOr(BitmapOr *node, EState *estate, int eflags); 20 | extern Node *MultiExecBitmapOr(BitmapOrState *node); 21 | extern void ExecEndBitmapOr(BitmapOrState *node); 22 | extern void ExecReScanBitmapOr(BitmapOrState *node); 23 | 24 | #endif /* NODEBITMAPOR_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeGather.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeGather.h 4 | * prototypes for nodeGather.c 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeGather.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEGATHER_H 15 | #define NODEGATHER_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern GatherState *ExecInitGather(Gather *node, EState *estate, int eflags); 20 | extern void ExecEndGather(GatherState *node); 21 | extern void ExecShutdownGather(GatherState *node); 22 | extern void ExecReScanGather(GatherState *node); 23 | 24 | #endif /* NODEGATHER_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeTableFuncscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeTableFuncscan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeTableFuncscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODETABLEFUNCSCAN_H 15 | #define NODETABLEFUNCSCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern TableFuncScanState *ExecInitTableFuncScan(TableFuncScan *node, EState *estate, int eflags); 20 | extern void ExecEndTableFuncScan(TableFuncScanState *node); 21 | extern void ExecReScanTableFuncScan(TableFuncScanState *node); 22 | 23 | #endif /* NODETABLEFUNCSCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeWorktablescan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeWorktablescan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeWorktablescan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEWORKTABLESCAN_H 15 | #define NODEWORKTABLESCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern WorkTableScanState *ExecInitWorkTableScan(WorkTableScan *node, EState *estate, int eflags); 20 | extern void ExecEndWorkTableScan(WorkTableScanState *node); 21 | extern void ExecReScanWorkTableScan(WorkTableScanState *node); 22 | 23 | #endif /* NODEWORKTABLESCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/libpq/pqmq.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pqmq.h 4 | * Use the frontend/backend protocol for communication over a shm_mq 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/libpq/pqmq.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PQMQ_H 14 | #define PQMQ_H 15 | 16 | #include "lib/stringinfo.h" 17 | #include "storage/shm_mq.h" 18 | 19 | extern void pq_redirect_to_shm_mq(dsm_segment *seg, shm_mq_handle *mqh); 20 | extern void pq_set_parallel_leader(pid_t pid, BackendId backend_id); 21 | 22 | extern void pq_parse_errornotice(StringInfo msg, ErrorData *edata); 23 | 24 | #endif /* PQMQ_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeTidrangescan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeTidrangescan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeTidrangescan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODETIDRANGESCAN_H 15 | #define NODETIDRANGESCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern TidRangeScanState *ExecInitTidRangeScan(TidRangeScan *node, 20 | EState *estate, int eflags); 21 | extern void ExecEndTidRangeScan(TidRangeScanState *node); 22 | extern void ExecReScanTidRangeScan(TidRangeScanState *node); 23 | 24 | #endif /* NODETIDRANGESCAN_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_subxactobject.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_subxactobject.h 3 | */ 4 | 5 | #ifndef PLPY_SUBXACTOBJECT 6 | #define PLPY_SUBXACTOBJECT 7 | 8 | #include "nodes/pg_list.h" 9 | #include "plpython.h" 10 | #include "utils/resowner.h" 11 | 12 | /* a list of nested explicit subtransactions */ 13 | extern List *explicit_subtransactions; 14 | 15 | 16 | typedef struct PLySubtransactionObject 17 | { 18 | PyObject_HEAD 19 | bool started; 20 | bool exited; 21 | } PLySubtransactionObject; 22 | 23 | /* explicit subtransaction data */ 24 | typedef struct PLySubtransactionData 25 | { 26 | MemoryContext oldcontext; 27 | ResourceOwner oldowner; 28 | } PLySubtransactionData; 29 | 30 | extern void PLy_subtransaction_init_type(void); 31 | extern PyObject *PLy_subtransaction_new(PyObject *self, PyObject *unused); 32 | 33 | #endif /* PLPY_SUBXACTOBJECT */ 34 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/usercontext.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * usercontext.h 4 | * Convenience functions for running code as a different database user. 5 | * 6 | *------------------------------------------------------------------------- 7 | */ 8 | #ifndef USERCONTEXT_H 9 | #define USERCONTEXT_H 10 | 11 | /* 12 | * When temporarily changing to run as a different user, this structure 13 | * holds the details needed to restore the original state. 14 | */ 15 | typedef struct UserContext 16 | { 17 | Oid save_userid; 18 | int save_sec_context; 19 | int save_nestlevel; 20 | } UserContext; 21 | 22 | /* Function prototypes. */ 23 | extern void SwitchToUntrustedUser(Oid userid, UserContext *context); 24 | extern void RestoreUserContext(UserContext *context); 25 | 26 | #endif /* USERCONTEXT_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeBitmapAnd.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeBitmapAnd.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeBitmapAnd.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEBITMAPAND_H 15 | #define NODEBITMAPAND_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern BitmapAndState *ExecInitBitmapAnd(BitmapAnd *node, EState *estate, int eflags); 20 | extern Node *MultiExecBitmapAnd(BitmapAndState *node); 21 | extern void ExecEndBitmapAnd(BitmapAndState *node); 22 | extern void ExecReScanBitmapAnd(BitmapAndState *node); 23 | 24 | #endif /* NODEBITMAPAND_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/getopt_long.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Portions Copyright (c) 1987, 1993, 1994 3 | * The Regents of the University of California. All rights reserved. 4 | * 5 | * Portions Copyright (c) 2003-2023, PostgreSQL Global Development Group 6 | * 7 | * src/include/getopt_long.h 8 | */ 9 | #ifndef GETOPT_LONG_H 10 | #define GETOPT_LONG_H 11 | 12 | #include "pg_getopt.h" 13 | 14 | #ifndef HAVE_STRUCT_OPTION 15 | 16 | struct option 17 | { 18 | const char *name; 19 | int has_arg; 20 | int *flag; 21 | int val; 22 | }; 23 | 24 | #define no_argument 0 25 | #define required_argument 1 26 | #define optional_argument 2 27 | #endif 28 | 29 | #ifndef HAVE_GETOPT_LONG 30 | 31 | extern int getopt_long(int argc, char *const argv[], 32 | const char *optstring, 33 | const struct option *longopts, int *longindex); 34 | #endif 35 | 36 | #endif /* GETOPT_LONG_H */ 37 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/port/cygwin.h: -------------------------------------------------------------------------------- 1 | /* src/include/port/cygwin.h */ 2 | 3 | /* 4 | * Variables declared in the core backend and referenced by loadable 5 | * modules need to be marked "dllimport" in the core build, but 6 | * "dllexport" when the declaration is read in a loadable module. 7 | * No special markings should be used when compiling frontend code. 8 | */ 9 | #ifndef FRONTEND 10 | #ifdef BUILDING_DLL 11 | #define PGDLLIMPORT __declspec (dllexport) 12 | #else 13 | #define PGDLLIMPORT __declspec (dllimport) 14 | #endif 15 | #endif 16 | 17 | /* 18 | * Cygwin has a strtof() which is literally just (float)strtod(), which means 19 | * we get misrounding _and_ silent over/underflow. Using our wrapper doesn't 20 | * fix the misrounding but does fix the error checks, which cuts down on the 21 | * number of test variant files needed. 22 | */ 23 | #define HAVE_BUGGY_STRTOF 1 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeRecursiveunion.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeRecursiveunion.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeRecursiveunion.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODERECURSIVEUNION_H 15 | #define NODERECURSIVEUNION_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern RecursiveUnionState *ExecInitRecursiveUnion(RecursiveUnion *node, EState *estate, int eflags); 20 | extern void ExecEndRecursiveUnion(RecursiveUnionState *node); 21 | extern void ExecReScanRecursiveUnion(RecursiveUnionState *node); 22 | 23 | #endif /* NODERECURSIVEUNION_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeResult.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeResult.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeResult.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODERESULT_H 15 | #define NODERESULT_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern ResultState *ExecInitResult(Result *node, EState *estate, int eflags); 20 | extern void ExecEndResult(ResultState *node); 21 | extern void ExecResultMarkPos(ResultState *node); 22 | extern void ExecResultRestrPos(ResultState *node); 23 | extern void ExecReScanResult(ResultState *node); 24 | 25 | #endif /* NODERESULT_H */ 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/attoptcache.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * attoptcache.h 4 | * Attribute options cache. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/utils/attoptcache.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef ATTOPTCACHE_H 14 | #define ATTOPTCACHE_H 15 | 16 | /* 17 | * Attribute options. 18 | */ 19 | typedef struct AttributeOpts 20 | { 21 | int32 vl_len_; /* varlena header (do not touch directly!) */ 22 | float8 n_distinct; 23 | float8 n_distinct_inherited; 24 | } AttributeOpts; 25 | 26 | extern AttributeOpts *get_attribute_options(Oid attrelid, int attnum); 27 | 28 | #endif /* ATTOPTCACHE_H */ 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/storage/reinit.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * reinit.h 4 | * Reinitialization of unlogged relations 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/storage/reinit.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | 15 | #ifndef REINIT_H 16 | #define REINIT_H 17 | 18 | #include "common/relpath.h" 19 | 20 | 21 | extern void ResetUnloggedRelations(int op); 22 | extern bool parse_filename_for_nontemp_relation(const char *name, 23 | int *relnumchars, 24 | ForkNumber *fork); 25 | 26 | #define UNLOGGED_RELATION_CLEANUP 0x0001 27 | #define UNLOGGED_RELATION_INIT 0x0002 28 | 29 | #endif /* REINIT_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/openssl/objectserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_OBJECTSERR_H 12 | # define OPENSSL_OBJECTSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OBJ reason codes. 23 | */ 24 | # define OBJ_R_OID_EXISTS 102 25 | # define OBJ_R_UNKNOWN_NID 101 26 | # define OBJ_R_UNKNOWN_OBJECT_NAME 103 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/postgres_fe.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * postgres_fe.h 4 | * Primary include file for PostgreSQL client-side .c files 5 | * 6 | * This should be the first file included by PostgreSQL client libraries and 7 | * application programs --- but not by backend modules, which should include 8 | * postgres.h. 9 | * 10 | * 11 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 12 | * Portions Copyright (c) 1995, Regents of the University of California 13 | * 14 | * src/include/postgres_fe.h 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef POSTGRES_FE_H 19 | #define POSTGRES_FE_H 20 | 21 | #ifndef FRONTEND 22 | #define FRONTEND 1 23 | #endif 24 | 25 | #include "c.h" 26 | 27 | #include "common/fe_memutils.h" 28 | 29 | #endif /* POSTGRES_FE_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/internal/postgres_fe.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * postgres_fe.h 4 | * Primary include file for PostgreSQL client-side .c files 5 | * 6 | * This should be the first file included by PostgreSQL client libraries and 7 | * application programs --- but not by backend modules, which should include 8 | * postgres.h. 9 | * 10 | * 11 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 12 | * Portions Copyright (c) 1995, Regents of the University of California 13 | * 14 | * src/include/postgres_fe.h 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef POSTGRES_FE_H 19 | #define POSTGRES_FE_H 20 | 21 | #ifndef FRONTEND 22 | #define FRONTEND 1 23 | #endif 24 | 25 | #include "c.h" 26 | 27 | #include "common/fe_memutils.h" 28 | 29 | #endif /* POSTGRES_FE_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/fe_utils/query_utils.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * Facilities for frontend code to query a databases. 4 | * 5 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 6 | * Portions Copyright (c) 1994, Regents of the University of California 7 | * 8 | * src/include/fe_utils/query_utils.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef QUERY_UTILS_H 13 | #define QUERY_UTILS_H 14 | 15 | #include "postgres_fe.h" 16 | 17 | #include "libpq-fe.h" 18 | 19 | extern PGresult *executeQuery(PGconn *conn, const char *query, bool echo); 20 | 21 | extern void executeCommand(PGconn *conn, const char *query, bool echo); 22 | 23 | extern bool executeMaintenanceCommand(PGconn *conn, const char *query, 24 | bool echo); 25 | 26 | #endif /* QUERY_UTILS_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/scansup.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * scansup.h 4 | * scanner support routines used by the core lexer 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/parser/scansup.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | 14 | #ifndef SCANSUP_H 15 | #define SCANSUP_H 16 | 17 | extern char *downcase_truncate_identifier(const char *ident, int len, 18 | bool warn); 19 | 20 | extern char *downcase_identifier(const char *ident, int len, 21 | bool warn, bool truncate); 22 | 23 | extern void truncate_identifier(char *ident, int len, bool warn); 24 | 25 | extern bool scanner_isspace(char ch); 26 | 27 | #endif /* SCANSUP_H */ 28 | -------------------------------------------------------------------------------- /dependency/include/openssl/decodererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_DECODERERR_H 12 | # define OPENSSL_DECODERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OSSL_DECODER reason codes. 23 | */ 24 | # define OSSL_DECODER_R_COULD_NOT_DECODE_OBJECT 101 25 | # define OSSL_DECODER_R_DECODER_NOT_FOUND 102 26 | # define OSSL_DECODER_R_MISSING_GET_PARAMS 100 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /dependency/include/openssl/encodererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_ENCODERERR_H 12 | # define OPENSSL_ENCODERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OSSL_ENCODER reason codes. 23 | */ 24 | # define OSSL_ENCODER_R_ENCODER_NOT_FOUND 101 25 | # define OSSL_ENCODER_R_INCORRECT_PROPERTY_QUERY 100 26 | # define OSSL_ENCODER_R_MISSING_GET_PARAMS 102 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeMaterial.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeMaterial.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeMaterial.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEMATERIAL_H 15 | #define NODEMATERIAL_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern MaterialState *ExecInitMaterial(Material *node, EState *estate, int eflags); 20 | extern void ExecEndMaterial(MaterialState *node); 21 | extern void ExecMaterialMarkPos(MaterialState *node); 22 | extern void ExecMaterialRestrPos(MaterialState *node); 23 | extern void ExecReScanMaterial(MaterialState *node); 24 | 25 | #endif /* NODEMATERIAL_H */ 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/rewrite/rewriteSupport.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * rewriteSupport.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/rewrite/rewriteSupport.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef REWRITESUPPORT_H 15 | #define REWRITESUPPORT_H 16 | 17 | /* The ON SELECT rule of a view is always named this: */ 18 | #define ViewSelectRuleName "_RETURN" 19 | 20 | extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName); 21 | 22 | extern void SetRelationRuleStatus(Oid relationId, bool relHasRules); 23 | 24 | extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok); 25 | 26 | #endif /* REWRITESUPPORT_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeNamedtuplestorescan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeNamedtuplestorescan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeNamedtuplestorescan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODENAMEDTUPLESTORESCAN_H 15 | #define NODENAMEDTUPLESTORESCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern NamedTuplestoreScanState *ExecInitNamedTuplestoreScan(NamedTuplestoreScan *node, EState *estate, int eflags); 20 | extern void ExecEndNamedTuplestoreScan(NamedTuplestoreScanState *node); 21 | extern void ExecReScanNamedTuplestoreScan(NamedTuplestoreScanState *node); 22 | 23 | #endif /* NODENAMEDTUPLESTORESCAN_H */ 24 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/storage/indexfsm.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * indexfsm.h 4 | * POSTGRES free space map for quickly finding an unused page in index 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/storage/indexfsm.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef INDEXFSM_H_ 15 | #define INDEXFSM_H_ 16 | 17 | #include "storage/block.h" 18 | #include "utils/relcache.h" 19 | 20 | extern BlockNumber GetFreeIndexPage(Relation rel); 21 | extern void RecordFreeIndexPage(Relation rel, BlockNumber freeBlock); 22 | extern void RecordUsedIndexPage(Relation rel, BlockNumber usedBlock); 23 | 24 | extern void IndexFreeSpaceMapVacuum(Relation rel); 25 | 26 | #endif /* INDEXFSM_H_ */ 27 | -------------------------------------------------------------------------------- /sources/merged_config.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging=true 4 | log_level=debug 5 | max_connections=100 6 | type=wifi 7 | connected=true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme=dark 12 | font_size=14 13 | auto_save_interval=5 14 | timezone=GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host=localhost 19 | port=3306 20 | username=dbuser 21 | password=dbpass 22 | database_name=testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory=/var/log/myapp 27 | temp_directory=/tmp/myapp 28 | backup_directory=/var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service=https://auth.example.com 33 | data_service=https://data.example.com 34 | metrics_service=https://metrics.example.com 35 | 36 | [advanced] 37 | complexity=high 38 | experimental_features=yes 39 | retry_attempts=5 40 | timeout_seconds=30 41 | 42 | [empty_section] 43 | 44 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/collationcmds.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * collationcmds.h 4 | * prototypes for collationcmds.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/commands/collationcmds.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | 15 | #ifndef COLLATIONCMDS_H 16 | #define COLLATIONCMDS_H 17 | 18 | #include "catalog/objectaddress.h" 19 | #include "parser/parse_node.h" 20 | 21 | extern ObjectAddress DefineCollation(ParseState *pstate, List *names, List *parameters, bool if_not_exists); 22 | extern void IsThereCollationInNamespace(const char *collname, Oid nspOid); 23 | extern ObjectAddress AlterCollation(AlterCollationStmt *stmt); 24 | 25 | #endif /* COLLATIONCMDS_H */ 26 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/pg_rusage.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_rusage.h 4 | * header file for resource usage measurement support routines 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/utils/pg_rusage.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef PG_RUSAGE_H 15 | #define PG_RUSAGE_H 16 | 17 | #include 18 | #include 19 | 20 | 21 | /* State structure for pg_rusage_init/pg_rusage_show */ 22 | typedef struct PGRUsage 23 | { 24 | struct timeval tv; 25 | struct rusage ru; 26 | } PGRUsage; 27 | 28 | 29 | extern void pg_rusage_init(PGRUsage *ru0); 30 | extern const char *pg_rusage_show(const PGRUsage *ru0); 31 | 32 | #endif /* PG_RUSAGE_H */ 33 | -------------------------------------------------------------------------------- /sources/config_with_comments.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging=true 4 | log_level=دیباگ 5 | max_connections=100 6 | type=wifi 7 | connected=true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme=تاریک 12 | font_size=14 13 | auto_save_interval=5 14 | timezone=GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host=هاست داخلی 19 | port=3306 20 | username=dbuser 21 | password=dbpass 22 | database_name=testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory=/var/log/myapp 27 | temp_directory=/tmp/myapp 28 | backup_directory=/var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service=https://auth.example.com 33 | data_service=https://data.example.com 34 | metrics_service=https://metrics.example.com 35 | 36 | [advanced] 37 | complexity=high 38 | experimental_features=yes 39 | retry_attempts=5 40 | timeout_seconds=30 41 | 42 | [empty_section] 43 | 44 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/fe_utils/cancel.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * Query cancellation support for frontend code 4 | * 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/fe_utils/cancel.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | 14 | #ifndef CANCEL_H 15 | #define CANCEL_H 16 | 17 | #include 18 | 19 | #include "libpq-fe.h" 20 | 21 | extern PGDLLIMPORT volatile sig_atomic_t CancelRequested; 22 | 23 | extern void SetCancelConn(PGconn *conn); 24 | extern void ResetCancelConn(void); 25 | 26 | /* 27 | * A callback can be optionally set up to be called at cancellation 28 | * time. 29 | */ 30 | extern void setup_cancel_handler(void (*query_cancel_callback) (void)); 31 | 32 | #endif /* CANCEL_H */ 33 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/fe_utils/recovery_gen.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * Generator for recovery configuration 4 | * 5 | * Portions Copyright (c) 2011-2023, PostgreSQL Global Development Group 6 | * 7 | * src/include/fe_utils/recovery_gen.h 8 | * 9 | *------------------------------------------------------------------------- 10 | */ 11 | #ifndef RECOVERY_GEN_H 12 | #define RECOVERY_GEN_H 13 | 14 | #include "libpq-fe.h" 15 | #include "pqexpbuffer.h" 16 | 17 | /* 18 | * recovery configuration is part of postgresql.conf in version 12 and up, and 19 | * in recovery.conf before that. 20 | */ 21 | #define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000 22 | 23 | extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn, 24 | char *replication_slot); 25 | extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir, 26 | PQExpBuffer contents); 27 | 28 | #endif /* RECOVERY_GEN_H */ 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all .exe files 2 | *.exe 3 | *.o 4 | # Ignore Visual Studio temporary files, build results, and 5 | # files generated by popular Visual Studio add-ons. 6 | 7 | # User-specific files 8 | *.rsuser 9 | *.suo 10 | *.user 11 | *.userosscache 12 | *.sln.docstates 13 | build/ 14 | 15 | # User-specific files (MonoDevelop/Xamarin Studio) 16 | *.userprefs 17 | 18 | # Mono Auto Generated Files 19 | mono_crash.* 20 | 21 | # Build results 22 | [Dd]ebug/ 23 | [Dd]ebugPublic/ 24 | [Rr]elease/ 25 | [Rr]eleases/ 26 | x64/ 27 | x86/ 28 | [Aa][Rr][Mm]/ 29 | [Aa][Rr][Mm]64/ 30 | bld/ 31 | [Bb]in/ 32 | [Oo]bj/ 33 | 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio Code directories 41 | .vscode/ 42 | # Uncomment if you have tasks that create the project's static files in wwwroot 43 | #wwwroot/ 44 | # build/ 45 | ./server.crt 46 | ./server.key -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeBitmapIndexscan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeBitmapIndexscan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeBitmapIndexscan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEBITMAPINDEXSCAN_H 15 | #define NODEBITMAPINDEXSCAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern BitmapIndexScanState *ExecInitBitmapIndexScan(BitmapIndexScan *node, EState *estate, int eflags); 20 | extern Node *MultiExecBitmapIndexScan(BitmapIndexScanState *node); 21 | extern void ExecEndBitmapIndexScan(BitmapIndexScanState *node); 22 | extern void ExecReScanBitmapIndexScan(BitmapIndexScanState *node); 23 | 24 | #endif /* NODEBITMAPINDEXSCAN_H */ 25 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/xid8.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * xid8.h 4 | * Header file for the "xid8" ADT. 5 | * 6 | * Copyright (c) 2020-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/utils/xid8.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef XID8_H 13 | #define XID8_H 14 | 15 | #include "access/transam.h" 16 | 17 | static inline FullTransactionId 18 | DatumGetFullTransactionId(Datum X) 19 | { 20 | return FullTransactionIdFromU64(DatumGetUInt64(X)); 21 | } 22 | 23 | static inline Datum 24 | FullTransactionIdGetDatum(FullTransactionId X) 25 | { 26 | return UInt64GetDatum(U64FromFullTransactionId(X)); 27 | } 28 | 29 | #define PG_GETARG_FULLTRANSACTIONID(X) DatumGetFullTransactionId(PG_GETARG_DATUM(X)) 30 | #define PG_RETURN_FULLTRANSACTIONID(X) return FullTransactionIdGetDatum(X) 31 | 32 | #endif /* XID8_H */ 33 | -------------------------------------------------------------------------------- /dependency/include/openssl/e_ostime.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2023 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_E_OSTIME_H 11 | # define OPENSSL_E_OSTIME_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | # include 17 | 18 | /* 19 | * This header guarantees that 'struct timeval' will be available. It includes 20 | * the minimum headers needed to facilitate this. This may still be a 21 | * substantial set of headers on some platforms (e.g. on Win32). 22 | */ 23 | 24 | # if defined(OPENSSL_SYS_WINDOWS) 25 | # include 26 | # else 27 | # include 28 | # endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/snowball/libstemmer/api.h: -------------------------------------------------------------------------------- 1 | 2 | typedef unsigned char symbol; 3 | 4 | /* Or replace 'char' above with 'short' for 16 bit characters. 5 | 6 | More precisely, replace 'char' with whatever type guarantees the 7 | character width you need. Note however that sizeof(symbol) should divide 8 | HEAD, defined in header.h as 2*sizeof(int), without remainder, otherwise 9 | there is an alignment problem. In the unlikely event of a problem here, 10 | consult Martin Porter. 11 | 12 | */ 13 | 14 | struct SN_env { 15 | symbol * p; 16 | int c; int l; int lb; int bra; int ket; 17 | symbol * * S; 18 | int * I; 19 | }; 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | extern struct SN_env * SN_create_env(int S_size, int I_size); 26 | extern void SN_close_env(struct SN_env * z, int S_size); 27 | 28 | extern int SN_set_current(struct SN_env * z, int size, const symbol * s); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | -------------------------------------------------------------------------------- /sources/encrypted_config.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging=true 4 | log_level=دیباگ 5 | max_connections=100 6 | type=wifi 7 | connected=true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme=تاریک 12 | font_size=14 13 | auto_save_interval=5 14 | timezone=GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host=هاست داخلی 19 | port=3306 20 | username=dbuser 21 | password=dbpass 22 | database_name=testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory=/var/log/myapp 27 | temp_directory=/tmp/myapp 28 | backup_directory=/var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service=https://auth.example.com 33 | data_service=https://data.example.com 34 | metrics_service=https://metrics.example.com 35 | 36 | [advanced] 37 | complexity=high 38 | experimental_features=yes 39 | retry_attempts=5 40 | timeout_seconds=30 41 | api_key=BA@GF 42 | 43 | [empty_section] 44 | 45 | -------------------------------------------------------------------------------- /dependency/include/openssl/asyncerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_ASYNCERR_H 12 | # define OPENSSL_ASYNCERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * ASYNC reason codes. 23 | */ 24 | # define ASYNC_R_FAILED_TO_SET_POOL 101 25 | # define ASYNC_R_FAILED_TO_SWAP_CONTEXT 102 26 | # define ASYNC_R_INIT_FAILED 105 27 | # define ASYNC_R_INVALID_POOL_SIZE 103 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeGatherMerge.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeGatherMerge.h 4 | * prototypes for nodeGatherMerge.c 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeGatherMerge.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODEGATHERMERGE_H 15 | #define NODEGATHERMERGE_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern GatherMergeState *ExecInitGatherMerge(GatherMerge *node, 20 | EState *estate, 21 | int eflags); 22 | extern void ExecEndGatherMerge(GatherMergeState *node); 23 | extern void ExecReScanGatherMerge(GatherMergeState *node); 24 | extern void ExecShutdownGatherMerge(GatherMergeState *node); 25 | 26 | #endif /* NODEGATHERMERGE_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/fe_utils/option_utils.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * Command line option processing facilities for frontend code 4 | * 5 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 6 | * Portions Copyright (c) 1994, Regents of the University of California 7 | * 8 | * src/include/fe_utils/option_utils.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef OPTION_UTILS_H 13 | #define OPTION_UTILS_H 14 | 15 | #include "postgres_fe.h" 16 | 17 | typedef void (*help_handler) (const char *progname); 18 | 19 | extern void handle_help_version_opts(int argc, char *argv[], 20 | const char *fixed_progname, 21 | help_handler hlp); 22 | extern bool option_parse_int(const char *optarg, const char *optname, 23 | int min_range, int max_range, 24 | int *result); 25 | 26 | #endif /* OPTION_UTILS_H */ 27 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/parse_collate.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * parse_collate.h 4 | * Routines for assigning collation information. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/parser/parse_collate.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef PARSE_COLLATE_H 15 | #define PARSE_COLLATE_H 16 | 17 | #include "parser/parse_node.h" 18 | 19 | extern void assign_query_collations(ParseState *pstate, Query *query); 20 | 21 | extern void assign_list_collations(ParseState *pstate, List *exprs); 22 | 23 | extern void assign_expr_collations(ParseState *pstate, Node *expr); 24 | 25 | extern Oid select_common_collation(ParseState *pstate, List *exprs, bool none_ok); 26 | 27 | #endif /* PARSE_COLLATE_H */ 28 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/conffiles.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------------------------------- 2 | * conffiles.h 3 | * 4 | * Utilities related to configuration files. 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/utils/conffiles.h 10 | * 11 | *-------------------------------------------------------------------- 12 | */ 13 | #ifndef CONFFILES_H 14 | #define CONFFILES_H 15 | 16 | /* recursion nesting depth for configuration files */ 17 | #define CONF_FILE_START_DEPTH 0 18 | #define CONF_FILE_MAX_DEPTH 10 19 | 20 | extern char *AbsoluteConfigLocation(const char *location, 21 | const char *calling_file); 22 | extern char **GetConfFilesInDir(const char *includedir, 23 | const char *calling_file, 24 | int elevel, int *num_filenames, 25 | char **err_msg); 26 | 27 | #endif /* CONFFILES_H */ 28 | -------------------------------------------------------------------------------- /concurrent/thread_pool.h: -------------------------------------------------------------------------------- 1 | #ifndef _THREADPOOL_H_ 2 | #define _THREADPOOL_H_ 3 | 4 | #include "concurrent.h" 5 | #include 6 | #include 7 | 8 | typedef int (*TaskFunction)(void*); 9 | 10 | typedef struct Task { 11 | TaskFunction function; 12 | void* arg; 13 | struct Task* next; 14 | } Task; 15 | 16 | typedef struct TaskQueue { 17 | Task* front; 18 | Task* rear; 19 | int count; 20 | Mutex lock; 21 | ThreadCondition hasTasks; 22 | } TaskQueue; 23 | 24 | typedef struct ThreadPool { 25 | int numThreads; 26 | Thread* threads; 27 | TaskQueue queue; 28 | volatile bool keepAlive; 29 | volatile int numWorking; 30 | Mutex workMutex; 31 | ThreadCondition allIdle; 32 | } ThreadPool; 33 | 34 | ThreadPool* thread_pool_create(int num_threads); 35 | void thread_pool_add_task(ThreadPool* pool, TaskFunction function, void* arg); 36 | void thread_pool_wait(ThreadPool* pool); 37 | void thread_pool_destroy(ThreadPool* pool); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /sources/converted_json.json: -------------------------------------------------------------------------------- 1 | {"additional_info": [{"budget": 500000, "contributors": ["Sam", "Alex", "Maria"], "name": "amin tahmasebi", "started": "2023-01-15"}], "ascii_sample": "Hello, World!", "categories": [{"id": 1, "items": [{"author": "John Doe", "available": true, "published_year": 2020, "title": "Learning JSON"}, {"author": "Jane Smith", "available": false, "published_year": 2021, "title": "Advanced JSON Processing"}], "name": "Books"}, {"id": 2, "items": [{"director": "Alice Johnson", "ratings": {"IMDB": 7.8, "Rotten Tomatoes": "85%"}, "released_year": 2019, "title": "The JSON Saga"}, {"director": "Bob Brown", "ratings": {"IMDB": 6.5, "Rotten Tomatoes": "75%"}, "released_year": 2018, "title": "JSON Unleashed"}], "name": "Movies"}], "library": "JSON Test Library", "notes": null, "supports_unicode": {"value": true}, "unicode_sample": ["こ", "ん", "に", "ち", "は", "世", "界", " ", "(", "H", "e", "l", "l", "o", " ", "W", "o", "r", "l", "d", " ", "i", "n", " ", "J", "a", "p", "a", "n", "e", "s", "e", ")"], "version": "1"} -------------------------------------------------------------------------------- /dependency/include/postgresql/server/parser/parse_param.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * parse_param.h 4 | * handle parameters in parser 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/parser/parse_param.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PARSE_PARAM_H 14 | #define PARSE_PARAM_H 15 | 16 | #include "parser/parse_node.h" 17 | 18 | extern void setup_parse_fixed_parameters(ParseState *pstate, 19 | const Oid *paramTypes, int numParams); 20 | extern void setup_parse_variable_parameters(ParseState *pstate, 21 | Oid **paramTypes, int *numParams); 22 | extern void check_variable_parameters(ParseState *pstate, Query *query); 23 | extern bool query_contains_extern_params(Query *query); 24 | 25 | #endif /* PARSE_PARAM_H */ 26 | -------------------------------------------------------------------------------- /sources/config.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging = true 4 | log_level = دیباگ 5 | max_connections = 100 6 | type = wifi 7 | connected = true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme = تاریک 12 | font_size = 14 13 | auto_save_interval = 5 14 | timezone = GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host = هاست داخلی 19 | port = 3306 20 | username = dbuser 21 | password = dbpass 22 | database_name = testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory = /var/log/myapp 27 | temp_directory = /tmp/myapp 28 | backup_directory = /var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service = https://auth.example.com 33 | data_service = https://data.example.com 34 | metrics_service = https://metrics.example.com 35 | 36 | [advanced] 37 | complexity = high 38 | experimental_features = yes 39 | retry_attempts = 5 40 | timeout_seconds = 30 41 | 42 | [empty_section] 43 | 44 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/keywords.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * keywords.h 4 | * PostgreSQL's list of SQL keywords 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/common/keywords.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef KEYWORDS_H 15 | #define KEYWORDS_H 16 | 17 | #include "common/kwlookup.h" 18 | 19 | /* Keyword categories --- should match lists in gram.y */ 20 | #define UNRESERVED_KEYWORD 0 21 | #define COL_NAME_KEYWORD 1 22 | #define TYPE_FUNC_NAME_KEYWORD 2 23 | #define RESERVED_KEYWORD 3 24 | 25 | extern PGDLLIMPORT const ScanKeywordList ScanKeywords; 26 | extern PGDLLIMPORT const uint8 ScanKeywordCategories[]; 27 | extern PGDLLIMPORT const bool ScanKeywordBareLabel[]; 28 | 29 | #endif /* KEYWORDS_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/sysattr.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * sysattr.h 4 | * POSTGRES system attribute definitions. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/access/sysattr.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef SYSATTR_H 15 | #define SYSATTR_H 16 | 17 | 18 | /* 19 | * Attribute numbers for the system-defined attributes 20 | */ 21 | #define SelfItemPointerAttributeNumber (-1) 22 | #define MinTransactionIdAttributeNumber (-2) 23 | #define MinCommandIdAttributeNumber (-3) 24 | #define MaxTransactionIdAttributeNumber (-4) 25 | #define MaxCommandIdAttributeNumber (-5) 26 | #define TableOidAttributeNumber (-6) 27 | #define FirstLowInvalidHeapAttributeNumber (-7) 28 | 29 | #endif /* SYSATTR_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/lib/bloomfilter.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * bloomfilter.h 4 | * Space-efficient set membership testing 5 | * 6 | * Copyright (c) 2018-2023, PostgreSQL Global Development Group 7 | * 8 | * IDENTIFICATION 9 | * src/include/lib/bloomfilter.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef BLOOMFILTER_H 14 | #define BLOOMFILTER_H 15 | 16 | typedef struct bloom_filter bloom_filter; 17 | 18 | extern bloom_filter *bloom_create(int64 total_elems, int bloom_work_mem, 19 | uint64 seed); 20 | extern void bloom_free(bloom_filter *filter); 21 | extern void bloom_add_element(bloom_filter *filter, unsigned char *elem, 22 | size_t len); 23 | extern bool bloom_lacks_element(bloom_filter *filter, unsigned char *elem, 24 | size_t len); 25 | extern double bloom_prop_bits_set(bloom_filter *filter); 26 | 27 | #endif /* BLOOMFILTER_H */ 28 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/saslprep.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * saslprep.h 4 | * SASLprep normalization, for SCRAM authentication 5 | * 6 | * These definitions are used by both frontend and backend code. 7 | * 8 | * Copyright (c) 2017-2023, PostgreSQL Global Development Group 9 | * 10 | * src/include/common/saslprep.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef SASLPREP_H 15 | #define SASLPREP_H 16 | 17 | /* 18 | * Return codes for pg_saslprep() function. 19 | */ 20 | typedef enum 21 | { 22 | SASLPREP_SUCCESS = 0, 23 | SASLPREP_OOM = -1, /* out of memory (only in frontend) */ 24 | SASLPREP_INVALID_UTF8 = -2, /* input is not a valid UTF-8 string */ 25 | SASLPREP_PROHIBITED = -3 /* output would contain prohibited characters */ 26 | } pg_saslprep_rc; 27 | 28 | extern pg_saslprep_rc pg_saslprep(const char *input, char **output); 29 | 30 | #endif /* SASLPREP_H */ 31 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/execAsync.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * execAsync.h 3 | * Support functions for asynchronous execution 4 | * 5 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 6 | * Portions Copyright (c) 1994, Regents of the University of California 7 | * 8 | * IDENTIFICATION 9 | * src/include/executor/execAsync.h 10 | *------------------------------------------------------------------------- 11 | */ 12 | 13 | #ifndef EXECASYNC_H 14 | #define EXECASYNC_H 15 | 16 | #include "nodes/execnodes.h" 17 | 18 | extern void ExecAsyncRequest(AsyncRequest *areq); 19 | extern void ExecAsyncConfigureWait(AsyncRequest *areq); 20 | extern void ExecAsyncNotify(AsyncRequest *areq); 21 | extern void ExecAsyncResponse(AsyncRequest *areq); 22 | extern void ExecAsyncRequestDone(AsyncRequest *areq, TupleTableSlot *result); 23 | extern void ExecAsyncRequestPending(AsyncRequest *areq); 24 | 25 | #endif /* EXECASYNC_H */ 26 | -------------------------------------------------------------------------------- /sources/dynamic_config_modified.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging=true 4 | log_level=دیباگ 5 | max_connections=100 6 | type=wifi 7 | connected=true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme=تاریک 12 | font_size=14 13 | auto_save_interval=5 14 | timezone=GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host=هاست داخلی 19 | port=3306 20 | username=dbuser 21 | password=dbpass 22 | database_name=testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory=/var/log/myapp 27 | temp_directory=/tmp/myapp 28 | backup_directory=/var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service=https://auth.example.com 33 | data_service=https://data.example.com 34 | metrics_service=https://metrics.example.com 35 | 36 | [advanced] 37 | complexity=high 38 | experimental_features=yes 39 | retry_attempts=5 40 | timeout_seconds=30 41 | 42 | [empty_section] 43 | 44 | [new_section] 45 | new_key=new_value 46 | 47 | -------------------------------------------------------------------------------- /dependency/include/openssl/thread.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_THREAD_H 12 | # define OPENSSL_THREAD_H 13 | 14 | # define OSSL_THREAD_SUPPORT_FLAG_THREAD_POOL (1U<<0) 15 | # define OSSL_THREAD_SUPPORT_FLAG_DEFAULT_SPAWN (1U<<1) 16 | 17 | # include 18 | 19 | # ifdef __cplusplus 20 | extern "C" { 21 | # endif 22 | 23 | uint32_t OSSL_get_thread_support_flags(void); 24 | int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads); 25 | uint64_t OSSL_get_max_threads(OSSL_LIB_CTX *ctx); 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | 31 | #endif /* OPENSSL_THREAD_H */ 32 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/optimizer/inherit.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * inherit.h 4 | * prototypes for inherit.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/optimizer/inherit.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef INHERIT_H 15 | #define INHERIT_H 16 | 17 | #include "nodes/pathnodes.h" 18 | 19 | 20 | extern void expand_inherited_rtentry(PlannerInfo *root, RelOptInfo *rel, 21 | RangeTblEntry *rte, Index rti); 22 | 23 | extern Bitmapset *get_rel_all_updated_cols(PlannerInfo *root, RelOptInfo *rel); 24 | 25 | extern bool apply_child_basequals(PlannerInfo *root, RelOptInfo *parentrel, 26 | RelOptInfo *childrel, RangeTblEntry *childRTE, 27 | AppendRelInfo *appinfo); 28 | 29 | #endif /* INHERIT_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/openssl/quic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_QUIC_H 11 | # define OPENSSL_QUIC_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | 17 | # ifndef OPENSSL_NO_QUIC 18 | 19 | # ifdef __cplusplus 20 | extern "C" { 21 | # endif 22 | 23 | /* 24 | * Method used for non-thread-assisted QUIC client operation. 25 | */ 26 | __owur const SSL_METHOD *OSSL_QUIC_client_method(void); 27 | /* 28 | * Method used for thread-assisted QUIC client operation. 29 | */ 30 | __owur const SSL_METHOD *OSSL_QUIC_client_thread_method(void); 31 | 32 | # ifdef __cplusplus 33 | } 34 | # endif 35 | 36 | # endif /* OPENSSL_NO_QUIC */ 37 | #endif 38 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/tupdesc_details.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * tupdesc_details.h 4 | * POSTGRES tuple descriptor definitions we can't include everywhere 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/access/tupdesc_details.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | 15 | #ifndef TUPDESC_DETAILS_H 16 | #define TUPDESC_DETAILS_H 17 | 18 | /* 19 | * Structure used to represent value to be used when the attribute is not 20 | * present at all in a tuple, i.e. when the column was created after the tuple 21 | */ 22 | typedef struct AttrMissing 23 | { 24 | bool am_present; /* true if non-NULL missing value exists */ 25 | Datum am_value; /* value when attribute is missing */ 26 | } AttrMissing; 27 | 28 | #endif /* TUPDESC_DETAILS_H */ 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/optimizer/joininfo.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * joininfo.h 4 | * prototypes for joininfo.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/optimizer/joininfo.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef JOININFO_H 15 | #define JOININFO_H 16 | 17 | #include "nodes/pathnodes.h" 18 | 19 | 20 | extern bool have_relevant_joinclause(PlannerInfo *root, 21 | RelOptInfo *rel1, RelOptInfo *rel2); 22 | 23 | extern void add_join_clause_to_rels(PlannerInfo *root, 24 | RestrictInfo *restrictinfo, 25 | Relids join_relids); 26 | extern void remove_join_clause_from_rels(PlannerInfo *root, 27 | RestrictInfo *restrictinfo, 28 | Relids join_relids); 29 | 30 | #endif /* JOININFO_H */ 31 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/utils/combocid.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * combocid.h 4 | * Combo command ID support routines 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/utils/combocid.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef COMBOCID_H 15 | #define COMBOCID_H 16 | 17 | /* 18 | * HeapTupleHeaderGetCmin and HeapTupleHeaderGetCmax function prototypes 19 | * are in access/htup.h, because that's where the macro definitions that 20 | * those functions replaced used to be. 21 | */ 22 | 23 | extern void AtEOXact_ComboCid(void); 24 | extern void RestoreComboCIDState(char *comboCIDstate); 25 | extern void SerializeComboCIDState(Size maxsize, char *start_address); 26 | extern Size EstimateComboCIDStateSpace(void); 27 | 28 | #endif /* COMBOCID_H */ 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/tstoreReceiver.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * tstoreReceiver.h 4 | * prototypes for tstoreReceiver.c 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/tstoreReceiver.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | 15 | #ifndef TSTORE_RECEIVER_H 16 | #define TSTORE_RECEIVER_H 17 | 18 | #include "tcop/dest.h" 19 | #include "utils/tuplestore.h" 20 | 21 | 22 | extern DestReceiver *CreateTuplestoreDestReceiver(void); 23 | 24 | extern void SetTuplestoreDestReceiverParams(DestReceiver *self, 25 | Tuplestorestate *tStore, 26 | MemoryContext tContext, 27 | bool detoast, 28 | TupleDesc target_tupdesc, 29 | const char *map_failure_msg); 30 | 31 | #endif /* TSTORE_RECEIVER_H */ 32 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/replication/pgoutput.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pgoutput.h 4 | * Logical Replication output plugin 5 | * 6 | * Copyright (c) 2015-2023, PostgreSQL Global Development Group 7 | * 8 | * IDENTIFICATION 9 | * src/include/replication/pgoutput.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef PGOUTPUT_H 14 | #define PGOUTPUT_H 15 | 16 | #include "nodes/pg_list.h" 17 | 18 | typedef struct PGOutputData 19 | { 20 | MemoryContext context; /* private memory context for transient 21 | * allocations */ 22 | MemoryContext cachectx; /* private memory context for cache data */ 23 | 24 | /* client-supplied info: */ 25 | uint32 protocol_version; 26 | List *publication_names; 27 | List *publications; 28 | bool binary; 29 | char streaming; 30 | bool messages; 31 | bool two_phase; 32 | char *origin; 33 | } PGOutputData; 34 | 35 | #endif /* PGOUTPUT_H */ 36 | -------------------------------------------------------------------------------- /sources/dynamic_config.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging=true 4 | log_level=دیباگ 5 | max_connections=100 6 | type=wifi 7 | connected=true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme=تاریک 12 | font_size=14 13 | auto_save_interval=5 14 | timezone=GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host=هاست داخلی 19 | port=3306 20 | username=dbuser 21 | password=dbpass 22 | database_name=testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory=/var/log/myapp 27 | temp_directory=/tmp/myapp 28 | backup_directory=/var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service=https://auth.example.com 33 | data_service=https://data.example.com 34 | metrics_service=https://metrics.example.com 35 | 36 | [advanced] 37 | complexity=high 38 | experimental_features=yes 39 | retry_attempts=5 40 | timeout_seconds=30 41 | 42 | [empty_section] 43 | 44 | [new_section] 45 | new_key=new_value 46 | another_key=another_value 47 | 48 | -------------------------------------------------------------------------------- /sources/modified_config.ini: -------------------------------------------------------------------------------- 1 | [global] 2 | ; This section contains global settings 3 | enable_logging=true 4 | log_level=دیباگ 5 | max_connections=100 6 | type=wifi 7 | connected=true 8 | 9 | [user_preferences] 10 | # User-specific settings 11 | theme=تاریک 12 | font_size=14 13 | auto_save_interval=5 14 | timezone=GMT+5 15 | 16 | [database] 17 | # Database connection details 18 | host=هاست داخلی 19 | port=3306 20 | username=dbuser 21 | password=dbpass 22 | database_name=testdb 23 | 24 | [paths] 25 | # Filesystem paths 26 | log_directory=/var/log/myapp 27 | temp_directory=/tmp/myapp 28 | backup_directory=/var/backup/myapp 29 | 30 | [service_endpoints] 31 | # Endpoints for various services 32 | auth_service=https://auth.example.com 33 | data_service=https://data.example.com 34 | metrics_service=https://metrics.example.com 35 | 36 | [advanced] 37 | complexity=high 38 | experimental_features=yes 39 | retry_attempts=5 40 | timeout_seconds=30 41 | 42 | [empty_section] 43 | 44 | [network] 45 | server_ips=192.168.1.1, 192.168.1.2, 192.168.1.3 46 | 47 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_largeobject_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_largeobject_d.h 4 | * Macro definitions for pg_largeobject 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_LARGEOBJECT_D_H 19 | #define PG_LARGEOBJECT_D_H 20 | 21 | #define LargeObjectRelationId 2613 22 | #define LargeObjectLOidPNIndexId 2683 23 | 24 | #define Anum_pg_largeobject_loid 1 25 | #define Anum_pg_largeobject_pageno 2 26 | #define Anum_pg_largeobject_data 3 27 | 28 | #define Natts_pg_largeobject 3 29 | 30 | 31 | #endif /* PG_LARGEOBJECT_D_H */ 32 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/executor/nodeSubplan.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * nodeSubplan.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/executor/nodeSubplan.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef NODESUBPLAN_H 15 | #define NODESUBPLAN_H 16 | 17 | #include "nodes/execnodes.h" 18 | 19 | extern SubPlanState *ExecInitSubPlan(SubPlan *subplan, PlanState *parent); 20 | 21 | extern Datum ExecSubPlan(SubPlanState *node, ExprContext *econtext, bool *isNull); 22 | 23 | extern void ExecReScanSetParamPlan(SubPlanState *node, PlanState *parent); 24 | 25 | extern void ExecSetParamPlan(SubPlanState *node, ExprContext *econtext); 26 | 27 | extern void ExecSetParamPlanMulti(const Bitmapset *params, ExprContext *econtext); 28 | 29 | #endif /* NODESUBPLAN_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/commands/schemacmds.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * schemacmds.h 4 | * prototypes for schemacmds.c. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/commands/schemacmds.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | 15 | #ifndef SCHEMACMDS_H 16 | #define SCHEMACMDS_H 17 | 18 | #include "catalog/objectaddress.h" 19 | #include "nodes/parsenodes.h" 20 | 21 | extern Oid CreateSchemaCommand(CreateSchemaStmt *stmt, 22 | const char *queryString, 23 | int stmt_location, int stmt_len); 24 | 25 | extern ObjectAddress RenameSchema(const char *oldname, const char *newname); 26 | extern ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId); 27 | extern void AlterSchemaOwner_oid(Oid schemaoid, Oid newOwnerId); 28 | 29 | #endif /* SCHEMACMDS_H */ 30 | -------------------------------------------------------------------------------- /secrets/secrets.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Amin Tahmasebi 3 | * @date 2024 4 | * @class Secrets 5 | */ 6 | 7 | #ifndef SECRETS_H_ 8 | #define SECRETS_H_ 9 | 10 | #include 11 | #include 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | // #define SECRETS_LOGGING_ENABLE 18 | 19 | #ifdef SECRETS_LOGGING_ENABLE 20 | #define SECRETS_LOG(fmt, ...) \ 21 | do { fprintf(stderr, "[SECRETS LOG] " fmt "\n", ##__VA_ARGS__); } while (0) 22 | #else 23 | #define SECRETS_LOG(fmt, ...) do { } while (0) 24 | #endif 25 | 26 | int secrets_randbelow(int n); 27 | int secrets_compare_digest(const unsigned char *a, const unsigned char *b, size_t length); 28 | 29 | void secrets_token_bytes(unsigned char *buffer, size_t nbytes); 30 | void secrets_token_hex(char *buffer, size_t nbytes); 31 | void secrets_token_urlsafe(char *buffer, size_t nbytes); 32 | 33 | void* secrets_choice(const void* seq, size_t size, size_t elem_size); 34 | unsigned int secrets_randbits(int k); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_attrdef_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_attrdef_d.h 4 | * Macro definitions for pg_attrdef 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_ATTRDEF_D_H 19 | #define PG_ATTRDEF_D_H 20 | 21 | #define AttrDefaultRelationId 2604 22 | #define AttrDefaultIndexId 2656 23 | #define AttrDefaultOidIndexId 2657 24 | 25 | #define Anum_pg_attrdef_oid 1 26 | #define Anum_pg_attrdef_adrelid 2 27 | #define Anum_pg_attrdef_adnum 3 28 | #define Anum_pg_attrdef_adbin 4 29 | 30 | #define Natts_pg_attrdef 4 31 | 32 | 33 | #endif /* PG_ATTRDEF_D_H */ 34 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_foreign_table_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_foreign_table_d.h 4 | * Macro definitions for pg_foreign_table 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_FOREIGN_TABLE_D_H 19 | #define PG_FOREIGN_TABLE_D_H 20 | 21 | #define ForeignTableRelationId 3118 22 | #define ForeignTableRelidIndexId 3119 23 | 24 | #define Anum_pg_foreign_table_ftrelid 1 25 | #define Anum_pg_foreign_table_ftserver 2 26 | #define Anum_pg_foreign_table_ftoptions 3 27 | 28 | #define Natts_pg_foreign_table 3 29 | 30 | 31 | #endif /* PG_FOREIGN_TABLE_D_H */ 32 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/libpq/be-gssapi-common.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * be-gssapi-common.h 4 | * Definitions for GSSAPI authentication and encryption handling 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/libpq/be-gssapi-common.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | 14 | #ifndef BE_GSSAPI_COMMON_H 15 | #define BE_GSSAPI_COMMON_H 16 | 17 | #ifdef ENABLE_GSS 18 | 19 | #if defined(HAVE_GSSAPI_H) 20 | #include 21 | #include 22 | #else 23 | #include 24 | #include 25 | #endif 26 | 27 | extern void pg_GSS_error(const char *errmsg, 28 | OM_uint32 maj_stat, OM_uint32 min_stat); 29 | 30 | extern void pg_store_delegated_credential(gss_cred_id_t cred); 31 | #endif /* ENABLE_GSS */ 32 | 33 | #endif /* BE_GSSAPI_COMMON_H */ 34 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/subtrans.h: -------------------------------------------------------------------------------- 1 | /* 2 | * subtrans.h 3 | * 4 | * PostgreSQL subtransaction-log manager 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/access/subtrans.h 10 | */ 11 | #ifndef SUBTRANS_H 12 | #define SUBTRANS_H 13 | 14 | /* Number of SLRU buffers to use for subtrans */ 15 | #define NUM_SUBTRANS_BUFFERS 32 16 | 17 | extern void SubTransSetParent(TransactionId xid, TransactionId parent); 18 | extern TransactionId SubTransGetParent(TransactionId xid); 19 | extern TransactionId SubTransGetTopmostTransaction(TransactionId xid); 20 | 21 | extern Size SUBTRANSShmemSize(void); 22 | extern void SUBTRANSShmemInit(void); 23 | extern void BootStrapSUBTRANS(void); 24 | extern void StartupSUBTRANS(TransactionId oldestActiveXID); 25 | extern void CheckPointSUBTRANS(void); 26 | extern void ExtendSUBTRANS(TransactionId newestXact); 27 | extern void TruncateSUBTRANS(TransactionId oldestXact); 28 | 29 | #endif /* SUBTRANS_H */ 30 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/libpq/ifaddr.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * ifaddr.h 4 | * IP netmask calculations, and enumerating network interfaces. 5 | * 6 | * Copyright (c) 2003-2023, PostgreSQL Global Development Group 7 | * 8 | * src/include/libpq/ifaddr.h 9 | * 10 | *------------------------------------------------------------------------- 11 | */ 12 | #ifndef IFADDR_H 13 | #define IFADDR_H 14 | 15 | #include "libpq/pqcomm.h" /* pgrminclude ignore */ 16 | 17 | typedef void (*PgIfAddrCallback) (struct sockaddr *addr, 18 | struct sockaddr *netmask, 19 | void *cb_data); 20 | 21 | extern int pg_range_sockaddr(const struct sockaddr_storage *addr, 22 | const struct sockaddr_storage *netaddr, 23 | const struct sockaddr_storage *netmask); 24 | 25 | extern int pg_sockaddr_cidr_mask(struct sockaddr_storage *mask, 26 | char *numbits, int family); 27 | 28 | extern int pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data); 29 | 30 | #endif /* IFADDR_H */ 31 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/access/table.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * table.h 4 | * Generic routines for table related code. 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/access/table.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef TABLE_H 15 | #define TABLE_H 16 | 17 | #include "nodes/primnodes.h" 18 | #include "storage/lockdefs.h" 19 | #include "utils/relcache.h" 20 | 21 | extern Relation table_open(Oid relationId, LOCKMODE lockmode); 22 | extern Relation table_openrv(const RangeVar *relation, LOCKMODE lockmode); 23 | extern Relation table_openrv_extended(const RangeVar *relation, 24 | LOCKMODE lockmode, bool missing_ok); 25 | extern Relation try_table_open(Oid relationId, LOCKMODE lockmode); 26 | extern void table_close(Relation relation, LOCKMODE lockmode); 27 | 28 | #endif /* TABLE_H */ 29 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_enum_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_enum_d.h 4 | * Macro definitions for pg_enum 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_ENUM_D_H 19 | #define PG_ENUM_D_H 20 | 21 | #define EnumRelationId 3501 22 | #define EnumOidIndexId 3502 23 | #define EnumTypIdLabelIndexId 3503 24 | #define EnumTypIdSortOrderIndexId 3534 25 | 26 | #define Anum_pg_enum_oid 1 27 | #define Anum_pg_enum_enumtypid 2 28 | #define Anum_pg_enum_enumsortorder 3 29 | #define Anum_pg_enum_enumlabel 4 30 | 31 | #define Natts_pg_enum 4 32 | 33 | 34 | #endif /* PG_ENUM_D_H */ 35 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/libpq/be-fsstubs.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * be-fsstubs.h 4 | * 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/libpq/be-fsstubs.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef BE_FSSTUBS_H 15 | #define BE_FSSTUBS_H 16 | 17 | /* 18 | * These are not fmgr-callable, but are available to C code. 19 | * Probably these should have had the underscore-free names, 20 | * but too late now... 21 | */ 22 | extern int lo_read(int fd, char *buf, int len); 23 | extern int lo_write(int fd, const char *buf, int len); 24 | 25 | /* 26 | * Cleanup LOs at xact commit/abort 27 | */ 28 | extern void AtEOXact_LargeObject(bool isCommit); 29 | extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid, 30 | SubTransactionId parentSubid); 31 | 32 | #endif /* BE_FSSTUBS_H */ 33 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_description_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_description_d.h 4 | * Macro definitions for pg_description 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_DESCRIPTION_D_H 19 | #define PG_DESCRIPTION_D_H 20 | 21 | #define DescriptionRelationId 2609 22 | #define DescriptionObjIndexId 2675 23 | 24 | #define Anum_pg_description_objoid 1 25 | #define Anum_pg_description_classoid 2 26 | #define Anum_pg_description_objsubid 3 27 | #define Anum_pg_description_description 4 28 | 29 | #define Natts_pg_description 4 30 | 31 | 32 | #endif /* PG_DESCRIPTION_D_H */ 33 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_seclabel_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_seclabel_d.h 4 | * Macro definitions for pg_seclabel 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_SECLABEL_D_H 19 | #define PG_SECLABEL_D_H 20 | 21 | #define SecLabelRelationId 3596 22 | #define SecLabelObjectIndexId 3597 23 | 24 | #define Anum_pg_seclabel_objoid 1 25 | #define Anum_pg_seclabel_classoid 2 26 | #define Anum_pg_seclabel_objsubid 3 27 | #define Anum_pg_seclabel_provider 4 28 | #define Anum_pg_seclabel_label 5 29 | 30 | #define Natts_pg_seclabel 5 31 | 32 | 33 | #endif /* PG_SECLABEL_D_H */ 34 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/plpy_main.h: -------------------------------------------------------------------------------- 1 | /* 2 | * src/pl/plpython/plpy_main.h 3 | */ 4 | 5 | #ifndef PLPY_MAIN_H 6 | #define PLPY_MAIN_H 7 | 8 | #include "plpy_procedure.h" 9 | 10 | /* the interpreter's globals dict */ 11 | extern PyObject *PLy_interp_globals; 12 | 13 | /* 14 | * A stack of PL/Python execution contexts. Each time user-defined Python code 15 | * is called, an execution context is created and put on the stack. After the 16 | * Python code returns, the context is destroyed. 17 | */ 18 | typedef struct PLyExecutionContext 19 | { 20 | PLyProcedure *curr_proc; /* the currently executing procedure */ 21 | MemoryContext scratch_ctx; /* a context for things like type I/O */ 22 | struct PLyExecutionContext *next; /* previous stack level */ 23 | } PLyExecutionContext; 24 | 25 | /* Get the current execution context */ 26 | extern PLyExecutionContext *PLy_current_execution_context(void); 27 | 28 | /* Get the scratch memory context for specified execution context */ 29 | extern MemoryContext PLy_get_scratch_context(PLyExecutionContext *context); 30 | 31 | #endif /* PLPY_MAIN_H */ 32 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_inherits_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_inherits_d.h 4 | * Macro definitions for pg_inherits 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_INHERITS_D_H 19 | #define PG_INHERITS_D_H 20 | 21 | #define InheritsRelationId 2611 22 | #define InheritsRelidSeqnoIndexId 2680 23 | #define InheritsParentIndexId 2187 24 | 25 | #define Anum_pg_inherits_inhrelid 1 26 | #define Anum_pg_inherits_inhparent 2 27 | #define Anum_pg_inherits_inhseqno 3 28 | #define Anum_pg_inherits_inhdetachpending 4 29 | 30 | #define Natts_pg_inherits 4 31 | 32 | 33 | #endif /* PG_INHERITS_D_H */ 34 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/pg_ts_config_map_d.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * pg_ts_config_map_d.h 4 | * Macro definitions for pg_ts_config_map 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * NOTES 10 | * ****************************** 11 | * *** DO NOT EDIT THIS FILE! *** 12 | * ****************************** 13 | * 14 | * It has been GENERATED by src/backend/catalog/genbki.pl 15 | * 16 | *------------------------------------------------------------------------- 17 | */ 18 | #ifndef PG_TS_CONFIG_MAP_D_H 19 | #define PG_TS_CONFIG_MAP_D_H 20 | 21 | #define TSConfigMapRelationId 3603 22 | #define TSConfigMapIndexId 3609 23 | 24 | #define Anum_pg_ts_config_map_mapcfg 1 25 | #define Anum_pg_ts_config_map_maptokentype 2 26 | #define Anum_pg_ts_config_map_mapseqno 3 27 | #define Anum_pg_ts_config_map_mapdict 4 28 | 29 | #define Natts_pg_ts_config_map 4 30 | 31 | 32 | #endif /* PG_TS_CONFIG_MAP_D_H */ 33 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/catalog/toasting.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * toasting.h 4 | * This file provides some definitions to support creation of toast tables 5 | * 6 | * 7 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 8 | * Portions Copyright (c) 1994, Regents of the University of California 9 | * 10 | * src/include/catalog/toasting.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef TOASTING_H 15 | #define TOASTING_H 16 | 17 | #include "storage/lock.h" 18 | 19 | /* 20 | * toasting.c prototypes 21 | */ 22 | extern void NewRelationCreateToastTable(Oid relOid, Datum reloptions); 23 | extern void NewHeapCreateToastTable(Oid relOid, Datum reloptions, 24 | LOCKMODE lockmode, Oid OIDOldToast); 25 | extern void AlterTableCreateToastTable(Oid relOid, Datum reloptions, 26 | LOCKMODE lockmode); 27 | extern void BootstrapToastTable(char *relName, 28 | Oid toastOid, Oid toastIndexOid); 29 | 30 | #endif /* TOASTING_H */ 31 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/common/ip.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * ip.h 4 | * Definitions for IPv6-aware network access. 5 | * 6 | * These definitions are used by both frontend and backend code. 7 | * 8 | * Copyright (c) 2003-2023, PostgreSQL Global Development Group 9 | * 10 | * src/include/common/ip.h 11 | * 12 | *------------------------------------------------------------------------- 13 | */ 14 | #ifndef IP_H 15 | #define IP_H 16 | 17 | #include 18 | #include 19 | 20 | #include "libpq/pqcomm.h" /* pgrminclude ignore */ 21 | 22 | 23 | extern int pg_getaddrinfo_all(const char *hostname, const char *servname, 24 | const struct addrinfo *hintp, 25 | struct addrinfo **result); 26 | extern void pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai); 27 | 28 | extern int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen, 29 | char *node, int nodelen, 30 | char *service, int servicelen, 31 | int flags); 32 | 33 | #endif /* IP_H */ 34 | -------------------------------------------------------------------------------- /dependency/include/postgresql/server/fe_utils/mbprint.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------- 2 | * 3 | * Multibyte character printing support for frontend code 4 | * 5 | * 6 | * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group 7 | * Portions Copyright (c) 1994, Regents of the University of California 8 | * 9 | * src/include/fe_utils/mbprint.h 10 | * 11 | *------------------------------------------------------------------------- 12 | */ 13 | #ifndef MBPRINT_H 14 | #define MBPRINT_H 15 | 16 | struct lineptr 17 | { 18 | unsigned char *ptr; 19 | int width; 20 | }; 21 | 22 | extern unsigned char *mbvalidate(unsigned char *pwcs, int encoding); 23 | extern int pg_wcswidth(const char *pwcs, size_t len, int encoding); 24 | extern void pg_wcsformat(const unsigned char *pwcs, size_t len, int encoding, 25 | struct lineptr *lines, int count); 26 | extern void pg_wcssize(const unsigned char *pwcs, size_t len, int encoding, 27 | int *result_width, int *result_height, 28 | int *result_format_size); 29 | 30 | #endif /* MBPRINT_H */ 31 | --------------------------------------------------------------------------------