<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Import CSST Postgres Data :: Ay Docs</title>
    <link>https://ops.docs.72602.space/csst/import/pg_import_data/index.html</link>
    <description>Preliminary Postgresql has installed though argo-workflow, if not check link Postgresql server pod named is app-postgresql and in namespace application Warning if the pod name and namespace isn’t match, you might need to modify following shell.&#xA;Download SQL file wget https://inner-gitlab.citybrain.org/csst/csst-py/-/raw/main/deploy/pg/init_dfs_table_data.sql -O init_dfs_table_data.sql TODO the content we download is all html, fff&#xA;Using import tool POSTGRES_PASSWORD=$(kubectl -n application get secret postgresql-credentials -o jsonpath=&#39;{.data.postgres-password}&#39; | base64 -d) \ POD_NAME=$(kubectl get pod -n application -l &#34;app.kubernetes.io/name=postgresql-tool&#34; -o jsonpath=&#34;{.items[0].metadata.name}&#34;) \ &amp;&amp; export SQL_FILENAME=&#34;init_dfs_table_data.sql&#34; \ &amp;&amp; kubectl -n application cp ${SQL_FILENAME} ${POD_NAME}:/tmp/${SQL_FILENAME} \ &amp;&amp; kubectl -n application exec -it deployment/app-postgresql-tool -- bash -c \ &#39;echo &#34;CREATE DATABASE csst;&#34; | PGPASSWORD=&#34;$POSTGRES_PASSWORD&#34; \ psql --host app-postgresql.application -U postgres -d postgres -p 5432&#39; \ &amp;&amp; kubectl -n application exec -it deployment/app-postgresql-tool -- bash -c \ &#39;PGPASSWORD=&#34;$POSTGRES_PASSWORD&#34; psql --host app-postgresql.application \ -U postgres -d csst -p 5432 &lt; /tmp/init_dfs_table_data.sql&#39;</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/csst/import/pg_import_data/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>