Zum Hauptinhalt springen
LIVE
CVSS 8.7CVE-2026-138346 | In Y Soft SAFEQ Cloud PC Client for Windows and macOS before 2026.09.03.4, under specific conditions, an attacker who already has access to a workstation running the PC Client, and who has specific knowledge of the customer's environment and the targeted workstation, could access files on another workstation running the PC Client within the same organization, including locally stored print jobs (local storage or hybrid mode). Access from outside the customerCVSS 9.4CVE-2026-138199 | A vulnerability was found in D-Link DIR-629 1.03.B01 CN. This affects the function dhcps4start of the file /etc/services/DHCPS/dhcpserver.php of the component DHCP Server. The manipulation of the argument domain results in os command injection. The attack may be performed from remote. The exploit has been made public and could be used.CVSS 5.3CVE-2026-138170 | A security flaw has been discovered in itsourcecode Event Management System 1.0. This issue affects some unknown processing of the file /admin/view_event.php. Performing a manipulation of the argument ID results in sql injection. The attack may be initiated remotely. The exploit has been released to the public and may be used for attacks.CVSS 5.1CVE-2026-138169 | A vulnerability was identified in itsourcecode Insurance Management System 1.0. This vulnerability affects unknown code of the file updateNominee.php. Such manipulation of the argument nominee_id leads to sql injection. The attack can be launched remotely. The exploit is publicly available and might be used.CVSS 5.3CVE-2026-138168 | A vulnerability was determined in itsourcecode Insurance Management System 1.0. This affects an unknown part of the file updateClient.php. This manipulation of the argument client_id causes sql injection. The attack can be initiated remotely. The exploit has been publicly disclosed and may be utilized.CVSS 4.8CVE-2026-138167 | A vulnerability was found in OpenHands software-agent-sdk up to 1.64.1. Affected by this issue is the function FileSettingsStore.load of the file openhands/agent_server/persistence/store.py of the component agent_server. The manipulation results in incorrect authorization. Attacking locally is a requirement. The exploit has been made public and could be used.CVSS 6.9CVE-2026-138166 | A vulnerability has been found in wxiaoqi Spring-Cloud-Platform up to 3.0. Affected by this vulnerability is the function RsaKeyHelper.generateKey of the file ace-modules/ace-admin/src/main/resources/application.yml of the component JWT Authentication. The manipulation of the argument rsa-secret leads to use of hard-coded cryptographic key . It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The proCVSS 10.0CVE-2026-138165 | A flaw has been found in D-Link R15 up to 1.22. Affected is an unknown function of the file /flupl/nodered of the component Upload Handler. Executing a manipulation of the argument filename can lead to os command injection. The attack may be performed from remote. The exploit has been published and may be used.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

PostgreSQL 0A000 오류 원인과 해결 방법 완벽 가이드

0A000 feature not supported 는? PostgreSQL 에러 코드 0A000은 현재 사용하려는 기능이 PostgreSQL에서 지원되지 않거나, 특정 컨텍스트에서는 사용할 수 없음을 의미합니다. 주로 트랜잭션 내부에서 허용되지 않는 명령을 실행하거나, 해당 버전의 Po…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming




0A000 feature not supported 는?



PostgreSQL 에러 코드 0A000은 현재 사용하려는 기능이 PostgreSQL에서 지원되지 않거나, 특정 컨텍스트에서는 사용할 수 없음을 의미합니다. 주로 트랜잭션 내부에서 허용되지 않는 명령을 실행하거나, 해당 버전의 PostgreSQL에서 아직 구현되지 않은 SQL 표준 문법을 사용할 때, 또는 복제(Replication) 환경의 제약으로 인해 발생합니다. 실무에서는 특히 CREATE DATABASE, VACUUM, CLUSTER 같은 명령을 트랜잭션 블록 안에서 실행하거나, Logical Replication 슬롯과 관련된 작업을 수행할 때 자주 마주치는 에러입니다.









주요 발생 원인



1. 트랜잭션 블록 내에서 허용되지 않는 DDL 명령 실행



PostgreSQL은 일부 DDL 명령을 트랜잭션 블록(BEGIN ... COMMIT) 내에서 실행하는 것을 허용하지 않습니다. CREATE DATABASE, DROP DATABASE, CREATE TABLESPACE, DROP TABLESPACE, VACUUM, CLUSTER 등의 명령은 트랜잭션 컨텍스트 밖에서 단독으로 실행되어야 하며, 이를 무시하고 트랜잭션 내부에서 호출하면 0A000 에러가 발생합니다.



2. 특정 PostgreSQL 버전에서 지원하지 않는 문법 또는 기능 사용



SQL 표준에는 정의되어 있지만 PostgreSQL의 해당 버전에서 아직 구현되지 않은 기능을 사용할 때 이 에러가 발생합니다. 예를 들어, 구버전 PostgreSQL에서 LATERAL JOIN, MERGE 문, GENERATED ALWAYS AS (expression) STORED 컬럼 정의 등을 사용하거나, 특정 윈도우 함수 옵션 조합을 사용하는 경우 해당 에러를 만날 수 있습니다.



3. 논리 복제(Logical Replication) 또는 스트리밍 복제 환경에서의 제약 위반



Standby 서버나 Logical Replication 구독자(Subscriber) 측에서 쓰기 작업이나 특정 관리 명령을 실행하려 할 때 0A000 에러가 발생합니다. Hot Standby 상태의 서버에서 DDL을 실행하거나, Logical Replication 슬롯이 활성화된 상태에서 지원되지 않는 방식으로 복제 슬롯을 조작하려는 경우 이 에러를 마주치게 됩니다.









해결 방법






원인 1: 트랜잭션 블록 내 허용되지 않는 DDL 실행



트랜잭션 블록을 제거하고 해당 명령을 단독으로 실행하는 것이 핵심입니다. 아래는 잘못된 예제와 올바른 예제를 비교한 것입니다.



❌ 잘못된 예 (0A000 에러 발생)




BEGIN;

CREATE DATABASE myapp_db
WITH OWNER = myapp_user
ENCODING = 'UTF8'
LC_COLLATE = 'ko_KR.UTF-8'
LC_CTYPE = 'ko_KR.UTF-8';

COMMIT;
-- ERROR: 0A000: CREATE DATABASE cannot run inside a transaction block






✅ 올바른 예 (트랜잭션 블록 밖에서 실행)




-- 트랜잭션 블록 없이 단독 실행
CREATE DATABASE myapp_db
WITH OWNER = myapp_user
ENCODING = 'UTF8'
LC_COLLATE = 'ko_KR.UTF-8'
LC_CTYPE = 'ko_KR.UTF-8';






VACUUM 명령도 동일한 원칙이 적용됩니다.




-- ❌ 잘못된 예
BEGIN;
VACUUM ANALYZE public.orders;
COMMIT;

-- ✅ 올바른 예: 트랜잭션 밖에서 단독 실행
VACUUM ANALYZE public.orders;

-- ✅ 특정 테이블만 선택적으로 VACUUM
VACUUM (VERBOSE, ANALYZE) public.orders;






애플리케이션 코드(예: Python psycopg2)에서 자동 커밋을 끈 상태로 VACUUM을 호출하는 경우도 흔한 실수입니다.




import psycopg2

conn = psycopg2.connect(dsn="...")

# ❌ 잘못된 예: autocommit=False (기본값) 상태에서 VACUUM 호출
# cur.execute("VACUUM ANALYZE orders;") # 0A000 에러 발생

# ✅ 올바른 예: autocommit=True 설정 후 실행
conn.autocommit = True
cur = conn.cursor()
cur.execute("VACUUM ANALYZE public.orders;")
cur.close()
conn.close()












원인 2: 지원하지 않는 문법 또는 기능 사용



먼저 현재 PostgreSQL 버전을 확인하고, 해당 기능이 지원되는 버전인지 검토해야 합니다.




-- 현재 PostgreSQL 버전 확인
SELECT version();
SHOW server_version;

-- 예: MERGE 문은 PostgreSQL 15부터 지원
-- PostgreSQL 14 이하에서 아래 구문 실행 시 0A000 에러 발생 가능
MERGE INTO target_table AS t
USING source_table AS s
ON t.id = s.id
WHEN MATCHED THEN
UPDATE SET t.value = s.value
WHEN NOT MATCHED THEN
INSERT (id, value) VALUES (s.id, s.value);

-- PostgreSQL 14 이하에서는 INSERT ... ON CONFLICT 로 대체
INSERT INTO target_table (id, value)
SELECT id, value FROM source_table
ON CONFLICT (id)
DO UPDATE SET value = EXCLUDED.value;






Generated Column 관련 에러인 경우 버전 확인 후 대안을 사용합니다.




-- PostgreSQL 12 미만에서는 GENERATED ALWAYS AS 미지원
-- ❌ 에러 발생 (12 미만 버전)
CREATE TABLE products (
id SERIAL PRIMARY KEY,
price NUMERIC(10,2),
tax_rate NUMERIC(5,4) DEFAULT 0.1,
total_price NUMERIC(10,2) GENERATED ALWAYS AS (price * (1 + tax_rate)) STORED
);

-- ✅ 대안: 트리거를 활용한 자동 계산 컬럼 구현
CREATE TABLE products (
id SERIAL PRIMARY KEY,
price NUMERIC(10,2),
tax_rate NUMERIC(5,4) DEFAULT 0.1,
total_price NUMERIC(10,2)
);

CREATE OR REPLACE FUNCTION fn_calc_total_price()
RETURNS TRIGGER AS $$
BEGIN
NEW.total_price := NEW.price * (1 + NEW.tax_rate);
RETURN NEW;
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER trg_products_total_price
BEFORE INSERT OR UPDATE ON products
FOR EACH ROW EXECUTE FUNCTION fn_calc_total_price();












원인 3: 복제 환경에서의 제약 위반



Standby 서버에서 현재 역할을 먼저 확인하고, Primary에서만 가능한 작업인지 검토해야 합니다.




-- 현재 서버가 Primary인지 Standby인지 확인
SELECT pg_is_in_recovery();
-- true이면 Standby(읽기 전용), false이면 Primary

-- Replication 슬롯 현황 확인
SELECT slot_name, slot_type, active, restart_lsn
FROM pg_replication_slots;

-- ❌ Standby에서 Replication Slot 생성 시 0A000 에러
-- SELECT pg_create_logical_replication_slot('my_slot', 'pgoutput');

-- ✅ Primary 서버에서만 Replication Slot 생성
-- Primary에 접속 후 실행
SELECT pg_create_logical_replication_slot('my_slot', 'pgoutput');

-- 논리 복제 Publication 생성 (Primary에서만 가능)
CREATE PUBLICATION my_publication
FOR TABLE public.orders, public.customers;

-- Subscription 상태 확인
SELECT subname, subenabled, subslotname
FROM pg_subscription;

-- 문제가 있는 Subscription 재초기화
ALTER SUBSCRIPTION my_subscription REFRESH PUBLICATION;






Hot Standby에서 허용되는 작업과 허용되지 않는 작업을 구분하는 쿼리도 확인해 두는 것이 좋습니다.




-- Standby에서 허용: SELECT 조회
SELECT COUNT(*) FROM public.orders WHERE created_at >= NOW() - INTERVAL '1 day';

-- Standby에서 허용: 복제 지연 확인
SELECT
now() - pg_last_xact_replay_timestamp() AS replication_delay,
pg_is_in_recovery() AS is_standby,
pg_last_wal_receive_lsn() AS received_lsn,
pg_last_wal_replay_lsn() AS replayed_lsn;

-- ❌ Standby에서 허용 안 됨 (0A000 에러)
-- CREATE TABLE, INSERT, UPDATE, DELETE 등 모든 쓰기 작업












예방 방법



1. 배포 스크립트에서 DDL 명령과 트랜잭션 블록을 명확히 분리하라



마이그레이션 툴(Flyway, Liquibase, Alembic 등)을 사용하는 실무 환경에서는 CREATE DATABASE, VACUUM, CREATE TABLESPACE 같은 트랜잭션 비호환 명령을 별도의 마이그레이션 파일로 분리하고, 해당 파일에는 -- transactionMode=none 또는 transactional: false 옵션을 명시하는 것이 좋습니다. 또한 CI/CD 파이프라인에서 개발/스테이징 환경에 먼저 배포해 에러를 사전에 검출하는 프로세스를 갖추어야 합니다.




-- Flyway에서 트랜잭션 비호환 마이그레이션 파일 예시
-- 파일명: V1__create_database.sql
-- 주석으로 트랜잭션 비활성화 지시

-- flyway:transactional=false
CREATE DATABASE analytics_db
WITH OWNER = analytics_user
ENCODING = 'UTF8';






2. 신규 기능 도입 전 반드시 버전 호환성 매트릭스를 문서화하라



팀 내에서 사용 중인 PostgreSQL 최소 지원 버전을 명시하고, 해당 버전에서 지원하지 않는 기능 목록을 위키나 README에 관리하세요. 코드 리뷰 시 새로운 SQL 문법이 포함된 경우 반드시 PostgreSQL 공식 문서의 버전별 Release Notes를 참조하여 호환성을 검토하는 절차를 팀 컨벤션으로 정착시켜야 합니다. 특히 ORM(SQLAlchemy, Hibernate 등)이 생성하는 SQL도 직접 로깅하여 주기적으로 점검하는 것을 권장합니다.









관련 에러





  • 25001 (active_sql_transaction): 트랜잭션이 활성화된 상태에서 트랜잭션 특성 변경 시 발생. SET TRANSACTION ISOLATION LEVEL을 트랜잭션 시작 후 잘못된 시점에 호출할 때 함께 등장.


  • 55P03 (lock_not_available): 복제 환경에서 락 관련 작업이 허용되지 않을 때 0A000과 연계되어 발생.


  • 25006 (read_only_sql_transaction): Standby 서버에서 쓰기 명령 실행 시 발생하며, 0A000과 원인이 유사한 복제 환경 제약 에러.


  • 42601 (syntax_error): 지원하지 않는 문법 사용 시 0A000 대신 발생하는 경우도 있으므로 두 에러를 함께 점검해야 함.


  • 58000 (system_error): Replication 슬롯 조작 중 심각한 시스템 오류로 번질 때 0A000 이후 연쇄적으로 발생할 수 있음.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

6 Cluster
18 sources
CVE-2026-135539 | Mozilla Firefox up to 115.45/153.7/160 CSS Object Model use after free (Nessus ID 388625)
VulDB Updates 2 hours ago
17 more sources
VulDB Updates2 hours agoCVE-2026-135541 | Mozilla Firefox up to 115.45/153.7/160 XSLT use after free (Nessus ID 388625) VulDB Updates2 hours agoCVE-2026-135547 | Mozilla Firefox up to 115.45/153.7/160 Networking sandbox (Nessus ID 388625) VulDB Updates2 hours agoCVE-2026-135549 | Mozilla Firefox up to 115.45/153.7/160 XSLT use after free (Nessus ID 388625) VulDB Updates2 hours agoCVE-2026-135548 | Mozilla Firefox up to 115.45/153.7/160 Layout use after free (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135533 | Mozilla Firefox up to 115.45/153.7/160 Layout Tables off-by-one (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135536 | Mozilla Firefox up to 115.45/153.7/160 DOM Editor uninitialized pointer (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135535 | Mozilla Firefox up to 115.45/153.7/160 Skia input validation (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135537 | Mozilla Firefox up to 115.45/153.7/160 Layout Text/Fonts out-of-bounds (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135525 | Mozilla Firefox up to 115.45/153.7/160 WebRender use after free (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135526 | Mozilla Firefox up to 115.45/153.7/160 Networking use after free (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135527 | Mozilla Firefox up to 115.45/153.7/160 DOM/HTML use after free (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135528 | Mozilla Firefox up to 153.7/160 HTTP race condition (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135530 | Mozilla Firefox up to 115.45/153.7/160 HTTP sandbox (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135529 | Mozilla Firefox up to 153.7/160 Text sandbox (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135520 | Mozilla Firefox up to 115.45/153.7/160 CanvasWebGL sandbox (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135524 | Mozilla Firefox JavaScript Engine use after free (Nessus ID 388625) VulDB Updates3 hours agoCVE-2026-135521 | Mozilla Firefox up to 115.45/153.7/160 Navigation sandbox (Nessus ID 388625)
16 sources
CVE-2026-116159 | ImageMagick up to 6.9.13-57/7.1.2-32 CDL Option memory leak (Nessus ID 388637)
VulDB Updates 18 min. ago
15 more sources
VulDB Updates18 min. agoCVE-2026-116154 | ImageMagick up to 6.9.13-57/7.1.2-32 XML Parser memory leak (Nessus ID 388637) VulDB Updates1 hour agoCVE-2026-72264 | Linux Kernel up to 7.1.4 tridentfb trident_pci_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72263 | Linux Kernel up to 7.1.4 ASoC snd_sof_load_topology memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72265 | Linux Kernel up to 7.1.4 fbdev nvidiafb_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72266 | Linux Kernel up to 6.6.144/6.12.96/6.18.39/7.1.4 vesafb vesafb_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72267 | Linux Kernel up to 7.1.4 carminefb alloc_carmine_fb memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72269 | Linux Kernel up to 7.1.4 fbdev uvesafb_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72268 | Linux Kernel up to 7.1.4 fbdev tdfxfb_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72271 | Linux Kernel up to 7.1.4 i740fb i740fb_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72270 | Linux Kernel up to 7.1.4 fbdev s3_pci_probe memory leak (WID-SEC-2026-2852) VulDB Updates1 hour agoCVE-2026-72272 | Linux Kernel up to 7.1.4 fbdev/radeon radeonfb_pci_register memory leak (WID-SEC-2026-2852) VulDB Updates2 hours agoCVE-2026-135540 | Mozilla Firefox up to 115.45/153.7/160 JIT memory corruption (Nessus ID 388625) VulDB Updates2 hours agoCVE-2026-135544 | Mozilla Firefox up to 115.45/153.7/160 Navigation memory corruption (Nessus ID 388625) VulDB Updates2 hours agoCVE-2026-135545 | Mozilla Firefox up to 153.7/160 Editor memory corruption (Nessus ID 388625) VulDB Updates2 hours agoCVE-2026-135543 | Mozilla Firefox up to 115.45/153.7/160 Networking memory corruption (Nessus ID 388625)
15 sources
Garmin fenix 8 47mm drops $250 to $749.99 for Cyber Monday, $49 under Ultra 4
The Mac Observer 26 min. ago
14 more sources
Latest from TechRadar46 min. agoI've been waiting for a better deal on the Philips LatteGo 4400 — and Amazon has delivered a record-low price for Cyber Monday Latest from TechRadar1 hour agoLooking to get a last-minute gaming gift before Cyber Monday is over? Latest from Windows Central2 hours agoWhy I bought a handheld over a gaming laptop on Cyber Monday Latest from TechRadar2 hours agoI found the most capable PC under $300 for Cyber Monday — Origimagic's C7 Windows 11 Pro machine packs dual Thunderbolt 4, 2.5Gb LAN, a Core 3 100U, 16GB of RAM, and a 512GB SSD OS X Daily2 hours agoCyber Monday Deals: $300 Off 16″ PROLED MacBook Pro, $100 Off AirPods Pro 3, $100 Off iPad Air, & More Latest from TechRadar2 hours agoThe best Cyber Monday deals in the UK in 2026: top picks from Amazon, Argos, Ninja, Lego and more Latest from TechRadar3 hours agoCyber Monday Australia laptop deals for 2026: score up to 52% off Lenovo, Apple, Dell, HP and more Latest from TechRadar3 hours agoAmazon Australia Cyber Monday deals CNET3 hours agoThis Pocket Battery Recharges Your Phone 4 Times, and it’s Only $38 for Cyber Monday Latest from TechRadar4 hours agoFirebat's M1 is a cracking Ryzen AI 9 HX 470 mini PC for AI workloads — and it's packing OCuLink, 32GB of RAM, and a 1TB SSD for $1020 this Cyber Monday Latest from TechRadar3 hours agoThe Lenovo IdeaCentre Tower Copilot+ PC with Core Ultra 7 CPU isn't discounted for Cyber Monday — and it's still the desktop computer I'd buy for work for $1049 The Verge3 hours agoQobuz is my streaming service of choice and it’s on sale during Cyber Monday CNET12 days agoThis Paramount Plus Cyber Monday Deal Gets You Ad-Free Viewing for Only $3 Per Month CNET4 hours agoCyber Monday Meta Quest 3S Deal Knocks $53 Off and Gets You $50 Free Amazon Credit
12 sources
CVE-2026-72260 | Linux Kernel up to 6.6.147/6.12.100/6.18.39/7.1.4 ASoC mediatek mt8192 pm_runtime_get_sync unusual condition (WID-SEC-2026-2852)
VulDB Updates 1 hour ago
11 more sources
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten PostgreSQL 0A000 오류 원인과 해결 방법 완벽 가이드

Thematisch verwandte Begriffe: PostgreSQL, 0A000 · 6 Treffer

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & topics
Loading widgets…
Next post