Close PostgreSQL consolidation docs

This commit is contained in:
happybell80 2026-03-17 00:43:37 +09:00
parent 714adeb59a
commit 3fb33582ff
5 changed files with 75 additions and 1 deletions

View File

@ -85,6 +85,7 @@
- [51123 구IP active runtime 제거 1차](./worklog/260309_51123_구IP_active_runtime_제거_1차.md) - [51123 구IP active runtime 제거 1차](./worklog/260309_51123_구IP_active_runtime_제거_1차.md)
- [24서버 robeing runtime workspace-config 단일화](./worklog/260310_24서버_robeing_runtime_workspace_config_단일화.md) - [24서버 robeing runtime workspace-config 단일화](./worklog/260310_24서버_robeing_runtime_workspace_config_단일화.md)
- [260316 runtime env override audit 및 SSOT 원칙 승격](./worklog/260316_runtime_env_override_audit_및_ssot원칙승격.md) - [260316 runtime env override audit 및 SSOT 원칙 승격](./worklog/260316_runtime_env_override_audit_및_ssot원칙승격.md)
- [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](./worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)
- [23 gateway MONITOR_URL 24 monitor 교정 및 실도메인 전수검증](./worklog/260310_23gateway_monitor_url_24monitor_교정_및_실도메인_전수검증.md) - [23 gateway MONITOR_URL 24 monitor 교정 및 실도메인 전수검증](./worklog/260310_23gateway_monitor_url_24monitor_교정_및_실도메인_전수검증.md)
- [24전환 배포대상과 ingress 24IP 교정 1차](./worklog/260309_24전환_배포대상과_ingress_24IP_교정_1차.md) - [24전환 배포대상과 ingress 24IP 교정 1차](./worklog/260309_24전환_배포대상과_ingress_24IP_교정_1차.md)
- [24서버 NAS 마운트 복원 및 ONNX 백업 실행](./worklog/260309_24서버_nas마운트복원_onnx백업실행.md) - [24서버 NAS 마운트 복원 및 ONNX 백업 실행](./worklog/260309_24서버_nas마운트복원_onnx백업실행.md)

View File

@ -13,6 +13,7 @@ tags: [infra, database, postgres, ideas, consolidation]
- [Infra Journey](../README.md) - [Infra Journey](../README.md)
- [PostgreSQL 통합 vs 전용 DB 구조성능 리서치](../research/260316_postgres_통합_vs_전용db_구조성능_리서치.md) - [PostgreSQL 통합 vs 전용 DB 구조성능 리서치](../research/260316_postgres_통합_vs_전용db_구조성능_리서치.md)
- [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md) - [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md)
- [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](../worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)
- [PostgreSQL Neo4j TCP healthcheck](../troubleshooting/260115_postgresql_neo4j_tcp_healthcheck.md) - [PostgreSQL Neo4j TCP healthcheck](../troubleshooting/260115_postgresql_neo4j_tcp_healthcheck.md)
## 문제 인식 ## 문제 인식
@ -81,3 +82,10 @@ tags: [infra, database, postgres, ideas, consolidation]
- 현재 시점의 해석은 아래 문장으로 고정한다. - 현재 시점의 해석은 아래 문장으로 고정한다.
`인프라의 벡터, 그래프, 검색 계층은 지금부터 PostgreSQL로 통일하는 방향으로 정리하고, 전용 DB는 현 단계에서 제거 대상으로 본다.` `인프라의 벡터, 그래프, 검색 계층은 지금부터 PostgreSQL로 통일하는 방향으로 정리하고, 전용 DB는 현 단계에서 제거 대상으로 본다.`
## 실행 결과
- `skill-rag-file`은 문서 벡터 검색을 `team_document_chunk + pgvector(768)`로 옮겼다.
- `rb8001`은 메모리 벡터/그래프와 coldmail 기억, startup valuation 비교 경로를 PostgreSQL로 옮겼다.
- 24 런타임 검증에서 `rb8001 /health``memory_store=postgresql`을 반환했고, 실제 coldmail/valuation/premia 경로도 PostgreSQL에서 동작했다.
- 따라서 이 아이디어는 더 이상 `좋겠다` 수준이 아니라 [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](../worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)로 연결된 실행 완료 항목이다.

View File

@ -4,7 +4,7 @@ tags: [infra, database, postgres, pgvector, search, graph, plans]
# 260317 non-RDB 계층 PostgreSQL 통일 계획 # 260317 non-RDB 계층 PostgreSQL 통일 계획
**상태**: planned **상태**: closed
## 상위 원칙 ## 상위 원칙
- [Infra Project Identity](../../00_Philosophy/00_IDENTITY/Infra_Project_Identity.md) - [Infra Project Identity](../../00_Philosophy/00_IDENTITY/Infra_Project_Identity.md)
@ -16,6 +16,7 @@ tags: [infra, database, postgres, pgvector, search, graph, plans]
- [Infra Journey](../README.md) - [Infra Journey](../README.md)
- [PostgreSQL 통합 vs 전용 DB 구조성능 리서치](../research/260316_postgres_통합_vs_전용db_구조성능_리서치.md) - [PostgreSQL 통합 vs 전용 DB 구조성능 리서치](../research/260316_postgres_통합_vs_전용db_구조성능_리서치.md)
- [모든 DB를 PostgreSQL로 통일하는 아이디어](../ideas/260316_모든db를_postgresql로_통일하는_아이디어.md) - [모든 DB를 PostgreSQL로 통일하는 아이디어](../ideas/260316_모든db를_postgresql로_통일하는_아이디어.md)
- [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](../worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)
- [PostgreSQL Neo4j TCP healthcheck](../troubleshooting/260115_postgresql_neo4j_tcp_healthcheck.md) - [PostgreSQL Neo4j TCP healthcheck](../troubleshooting/260115_postgresql_neo4j_tcp_healthcheck.md)
- [백엔드: PostgreSQL, ChromaDB, Vector Memory 설계](https://github.com/happybell80/robeing/blob/main/DOCS/book/300_architecture/330_%EB%B0%B1%EC%97%94%EB%93%9C_PostgreSQL_ChromaDB_Vector_Memory.md) - [백엔드: PostgreSQL, ChromaDB, Vector Memory 설계](https://github.com/happybell80/robeing/blob/main/DOCS/book/300_architecture/330_%EB%B0%B1%EC%97%94%EB%93%9C_PostgreSQL_ChromaDB_Vector_Memory.md)
- [Phase 2: ChromaDB + Neo4j 하이브리드 기억 회상 시스템 구현](https://github.com/happybell80/robeing/blob/main/DOCS/journey/troubleshooting/251016_phase2_hybrid_memory_implementation.md) - [Phase 2: ChromaDB + Neo4j 하이브리드 기억 회상 시스템 구현](https://github.com/happybell80/robeing/blob/main/DOCS/journey/troubleshooting/251016_phase2_hybrid_memory_implementation.md)
@ -250,6 +251,14 @@ create table graph_edges (
- hybrid rank 공식 - hybrid rank 공식
- 서비스별 cut-over 순서와 rollback 기준 - 서비스별 cut-over 순서와 rollback 기준
## 실행 결과
- 1차: `rb8001` 메모리 벡터와 recall은 PostgreSQL `memory_vectors`, `memory_graph_nodes`, `memory_graph_edges`로 전환 완료.
- 2차: `skill-rag-file` 문서 벡터와 검색은 PostgreSQL `team_document_chunk` + `pgvector(768)`로 전환 완료.
- 3차: `rb8001`의 잔여 Neo4j 런타임 경로였던 `coldmail memory`, `startup valuation comparable prior`, `valuation premia recalculation`도 PostgreSQL 경로로 전환 완료.
- 24 배포는 `rb8001` Gitea Actions와 `skill-rag-file` 실배포 검증으로 반영됐고, 컨테이너 헬스체크와 실제 저장/검색/재계산 결과로 확인됐다.
- 이 계획의 닫힘 조건은 [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](../worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)에서 충족 증거를 남겼다.
## 한 줄 결론 ## 한 줄 결론
- 이번 계획의 핵심은 `전용 DB를 유지할 이유를 찾는 것`이 아니라, `벡터 -> 검색 -> 그래프` 순서로 non-RDB 계층을 PostgreSQL 하나로 흡수하는 실제 전환 순서를 고정하는 것이다. - 이번 계획의 핵심은 `전용 DB를 유지할 이유를 찾는 것`이 아니라, `벡터 -> 검색 -> 그래프` 순서로 non-RDB 계층을 PostgreSQL 하나로 흡수하는 실제 전환 순서를 고정하는 것이다.

View File

@ -13,6 +13,7 @@ tags: [infra, database, postgres, redis, pgvector, elasticsearch, neo4j, researc
## 관련 문서 ## 관련 문서
- [Infra Journey](../README.md) - [Infra Journey](../README.md)
- [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md) - [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md)
- [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](../worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)
- [PostgreSQL Neo4j TCP healthcheck](../troubleshooting/260115_postgresql_neo4j_tcp_healthcheck.md) - [PostgreSQL Neo4j TCP healthcheck](../troubleshooting/260115_postgresql_neo4j_tcp_healthcheck.md)
- [백엔드: PostgreSQL, ChromaDB, Vector Memory 설계](https://github.com/happybell80/robeing/blob/main/DOCS/book/300_architecture/330_%EB%B0%B1%EC%97%94%EB%93%9C_PostgreSQL_ChromaDB_Vector_Memory.md) - [백엔드: PostgreSQL, ChromaDB, Vector Memory 설계](https://github.com/happybell80/robeing/blob/main/DOCS/book/300_architecture/330_%EB%B0%B1%EC%97%94%EB%93%9C_PostgreSQL_ChromaDB_Vector_Memory.md)
- [Phase 2: ChromaDB + Neo4j 하이브리드 기억 회상 시스템 구현](https://github.com/happybell80/robeing/blob/main/DOCS/journey/troubleshooting/251016_phase2_hybrid_memory_implementation.md) - [Phase 2: ChromaDB + Neo4j 하이브리드 기억 회상 시스템 구현](https://github.com/happybell80/robeing/blob/main/DOCS/journey/troubleshooting/251016_phase2_hybrid_memory_implementation.md)
@ -139,6 +140,13 @@ tags: [infra, database, postgres, redis, pgvector, elasticsearch, neo4j, researc
- 내부 대표 질의셋 10~20개를 무엇으로 고정할지 아직 없다. - 내부 대표 질의셋 10~20개를 무엇으로 고정할지 아직 없다.
- 즉 이 주제의 다음 단계는 추가 일반론 리서치가 아니라 [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md) 기준의 `스키마/인덱스/랭킹 설계 실행`이다. - 즉 이 주제의 다음 단계는 추가 일반론 리서치가 아니라 [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md) 기준의 `스키마/인덱스/랭킹 설계 실행`이다.
## 실행 검증 결과
- `skill-rag-file`은 PostgreSQL `team_document_chunk`에 실제 문서 chunk를 저장하고 검색 결과를 반환하는 것으로 검증됐다.
- `rb8001`은 PostgreSQL `memory_vectors`, `memory_graph_nodes`, `memory_graph_edges`에서 실제 저장/회상/관계 조회가 검증됐다.
- 잔여 Neo4j 런타임 경로였던 `coldmail memory`, `startup valuation comparable prior`, `valuation premia recalculation`도 PostgreSQL 경로로 치환되어 24 컨테이너 안에서 실동작이 확인됐다.
- 따라서 이 리서치의 남은 미확정은 더 이상 `PostgreSQL로 가능한가`가 아니라 이후 성능 미세조정과 범위 확장뿐이며, 실행 근거는 [non-RDB 계층 PostgreSQL 통일 1차 실행 완료](../worklog/260317_nonrdb_계층_postgresql_통일_1차_실행완료.md)에 닫힘 증거로 남긴다.
## 한 줄 결론 ## 한 줄 결론
- 현재 단계에서는 벡터, 그래프, 검색 같은 non-RDB 기능도 PostgreSQL로 통일하는 쪽이 더 합리적이며, Gemini식 퍼센트 비교는 이 결정을 뒤집을 정도의 SSOT 근거로 보기 어렵다. - 현재 단계에서는 벡터, 그래프, 검색 같은 non-RDB 기능도 PostgreSQL로 통일하는 쪽이 더 합리적이며, Gemini식 퍼센트 비교는 이 결정을 뒤집을 정도의 SSOT 근거로 보기 어렵다.

View File

@ -0,0 +1,48 @@
---
tags: [infra, postgres, pgvector, search, graph, worklog, robeing]
---
# non-RDB 계층 PostgreSQL 통일 1차 실행 완료
## 관련 문서
- [모든 DB를 PostgreSQL로 통일하는 아이디어](../ideas/260316_모든db를_postgresql로_통일하는_아이디어.md)
- [PostgreSQL 통합 vs 전용 DB 구조성능 리서치](../research/260316_postgres_통합_vs_전용db_구조성능_리서치.md)
- [non-RDB 계층 PostgreSQL 통일 계획](../plans/260317_nonrdb_계층_postgresql_통일_계획.md)
## 완료 요약
- `skill-rag-file` 문서 벡터 검색을 ChromaDB에서 PostgreSQL `pgvector` 기반 `team_document_chunk`로 전환했습니다.
- `rb8001` 메모리 벡터/그래프를 ChromaDB + Neo4j에서 PostgreSQL `memory_vectors`, `memory_graph_nodes`, `memory_graph_edges`로 전환했습니다.
- 잔여 Neo4j 런타임 경로였던 `coldmail memory`, `startup valuation comparable prior`, `valuation premia recalculation`도 PostgreSQL로 옮겼습니다.
## 적용 내용
- `skill-rag-file`
- 업로드/검색/재인덱싱 경로를 PostgreSQL `pgvector` 저장소로 교체
- `team_document_chunk` 테이블과 HNSW 인덱스 사용
- `rb8001`
- 메모리 회상과 관계 추론을 PostgreSQL 저장소로 교체
- coldmail 기억을 `coldmail_memory_email*` 테이블군으로 교체
- startup valuation 비교 prior와 likelihood 데이터를 PostgreSQL `startup_valuation`에서 읽도록 교체
- valuation premia 재계산이 PostgreSQL 샘플만으로 동작하도록 교체
- 배포
- `rb8001` 커밋 `d534036`, `2dc9eff`를 push 후 Gitea Actions로 24 서버 재배포 확인
- `skill-rag-file` PostgreSQL 전환은 이미 24 검증 완료 상태 유지
## 검증 결과
- 24 `rb8001 /health`:
- `memory_store=postgresql`
- 컨테이너 상태 `Up ... (healthy)`
- 24 `rb8001` 컨테이너 내부 검증:
- coldmail memory 저장 성공
- `get_recent_memory`, `get_rule_context` 성공
- `get_dynamic_prior_from_postgresql`, `get_likelihood_data_from_postgresql` 성공
- `recalculate_premia_for_stage_industry('seed', 'IT')` 성공
- PostgreSQL 실DB 검증:
- `coldmail_memory_email = 2`
- `coldmail_memory_email_rule = 2`
- `valuation_premia(seed, IT)` 갱신 확인
- `memory_vectors`, `memory_graph_nodes`, `memory_graph_edges` 실데이터 존재 확인
- `team_document_chunk` 실데이터 존재 확인
## 결론
- 이번 1차 범위의 non-RDB 계층 PostgreSQL 통일은 닫혔습니다.
- 현재 기준에서 `rb8001`, `skill-rag-file` 핵심 벡터/검색/그래프 런타임은 PostgreSQL만으로 동작하며, ChromaDB/Neo4j는 더 이상 필수 운영 저장소가 아닙니다.