Статус: Черновик
Для интеграции стороннего компонента в основной продукт, этот компонент должен удовлетворять набору требований:
- стабильность и качество
- принадлежность и сопровождаемость
- документация
SELECT | |
now()-pg_postmaster_start_time() "Uptime", now()-stats_reset "Since stats reset", | |
round(100.0*checkpoints_req/total_checkpoints,1) "Forced checkpoint ratio (%)", | |
round(np.min_since_reset/total_checkpoints,2) "Minutes between checkpoints", | |
round(checkpoint_write_time::numeric/(total_checkpoints*1000),2) "Average write time per checkpoint (s)", | |
round(checkpoint_sync_time::numeric/(total_checkpoints*1000),2) "Average sync time per checkpoint (s)", | |
round(total_buffers/np.mp,1) "Total MB written", | |
round(buffers_checkpoint/(np.mp*total_checkpoints),2) "MB per checkpoint", | |
round(buffers_checkpoint/(np.mp*np.min_since_reset*60),2) "Checkpoint MBps", | |
round(buffers_clean/(np.mp*np.min_since_reset*60),2) "Bgwriter MBps", |
WITH table_opts AS ( | |
SELECT | |
c.oid, c.relname, c.relfrozenxid, c.relminmxid, n.nspname, array_to_string(c.reloptions, '') AS relopts | |
FROM pg_class c | |
INNER JOIN pg_namespace n ON c.relnamespace = n.oid | |
WHERE c.relkind IN ('r', 't') AND n.nspname NOT IN ('pg_catalog', 'information_schema') AND n.nspname !~ '^pg_temp' | |
), | |
vacuum_settings AS ( | |
SELECT | |
oid, relname, nspname, relfrozenxid, relminmxid, |
image: golang:1.21.0 | |
stages: | |
- test | |
tests/integration: | |
stage: test | |
parallel: | |
matrix: | |
- VERSION: | |
- "16-alpine3.18" |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <sys/socket.h> | |
#include <sys/ioctl.h> | |
#include <netinet/in.h> | |
#include <linux/sockios.h> | |
#include <net/if.h> | |
#include <linux/ethtool.h> |
/* | |
* use -lpthread when build. | |
*/ | |
#include <semaphore.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> |
#include <stdio.h> | |
#include <string.h> | |
#define LOC_MAXLEN 13 | |
int main (void) | |
{ | |
char dest[LOC_MAXLEN]; | |
snprintf(dest, LOC_MAXLEN, "%s%s", "abc", "def"); |
#include <ncurses.h> | |
int main() | |
{ | |
initscr(); | |
keypad(stdscr, true); //Включаем режим чтения функциональных клавиш | |
noecho(); //Выключаем отображение вводимых символов, нужно для getch() | |
halfdelay(100); //Устанавливаем ограничение по времени ожидания getch() в 10 сек | |
printw("Press F2 to exit.\n"); |