update some content

This commit is contained in:
2021-10-28 14:13:06 +08:00
parent 97eb780aa4
commit 4f99455d8f
242 changed files with 1826 additions and 2616 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者",
"headline" : "PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者",
"description" : "\x3cp\x3e因為工作上的需求有個資料庫需要開放給不同team的人去存取\x3c\/p\x3e\n\x3cp\x3e雖然都是在同一台機器上的同一個資料庫\x3c\/p\x3e\n\x3cp\x3e但是希望能夠不同team的人用不同的資料庫使用者\x3c\/p\x3e\n\x3cp\x3e這樣萬一出事會比較好抓兇手\x3c\/p\x3e",
"description" : "\u003cp\u003e因為工作上的需求有個資料庫需要開放給不同team的人去存取\u003c\/p\u003e\n\u003cp\u003e雖然都是在同一台機器上的同一個資料庫\u003c\/p\u003e\n\u003cp\u003e但是希望能夠不同team的人用不同的資料庫使用者\u003c\/p\u003e\n\u003cp\u003e這樣萬一出事會比較好抓兇手\u003c\/p\u003e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -21,8 +21,8 @@
"accountablePerson" : "Eric Chang",
"copyrightHolder" : "Eric Chang",
"copyrightYear" : "2018",
"datePublished": "2018-11-12 09:48:12 \x2b0800 CST",
"dateModified" : "2018-11-12 09:48:12 \x2b0800 CST",
"datePublished": "2018-11-12 09:48:12 \u002b0800 CST",
"dateModified" : "2018-11-12 09:48:12 \u002b0800 CST",
"url" : "https:\/\/h.cowbay.org\/post\/copy_role_in_pgsql\/",
"wordCount" : "20",
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-7.jpg"",
@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1632901488" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1632901488" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -312,7 +312,7 @@ if (!doNotTrack) {
<p>每次開發不同的AP就要求一個不同的代號實在有點煩</p>
<p>之前都是用pgadmin來處理現在就改用psql來弄</p>
<p>其實也很簡單</p>
<pre><code>CREATE ROLE b LOGIN;
<pre tabindex="0"><code>CREATE ROLE b LOGIN;
GRANT a TO b;
</code></pre><p>可以帶入script 用script 或者用ansible去跑就好了</p>
<p>省得每次都要在那邊手動改來改去..</p>
@@ -604,7 +604,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1632901488"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
</body>
</html>