pg

    0熱度

    1回答

    我有一個從pgbackups生成的轉儲文件,我想使用它的一些數據在heroku上填充一個新的數據庫。這不是一個簡單的恢復。 我想用從pg_restore的-t選項,並且還希望從emails錶轉儲的from屬性映射到from_email屬性在新emails表。 我在heroku run bash中沒有pg_restore實用程序,但是有沒有辦法通過psql來獲取或執行此操作? Heroku的數據庫結

    1熱度

    1回答

    我在Window 7 Set objShell = WScript.CreateObject("WScript.Shell") objShell.Run postgresqlPath & "pg_dump.exe " & ServerId & " > " & backupFolder & "Database.dump.out" Wscript.Sleep 500 objShell.SendK

    0熱度

    1回答

    我得到一個免費的Heroku帳戶,我的工作: 的Rails 3.2.8 的Heroku Heroku的-工具區/ 2.33.2 PG 但是,每次我鍵入Heroku的PG命令,我得到這個消息: Resource not found! 除憑據命令: ➜ heroku pg:credentials HEROKU_POSTGRESQL_MYDB Connection info string:

    2熱度

    2回答

    我想從登臺演示 我也跟着在Heroku上的文檔,並通過SO,但至今沒有運氣梳理還原備份。 我使用Windows 7和版本: 的Heroku /工具區/ 2.33.2(I386-的mingw32)紅寶石/ 1.9.2 紅寶石:紅寶石1.9.3p194(2012-04-20)[I386 -mingw32] 的Rails:3.2.7 步驟: $heroku pgbackups:capture HER

    4熱度

    3回答

    即時在Ubuntu 12.04上運行,我試圖在Ruby 1.9.3p194/Rails 3.2.3上安裝pg gem v'0.12.2'。我已經安裝的libpq-dev的,並建立必要的,但我仍然得到同樣的錯誤: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permission

    2熱度

    4回答

    可能重複: Unable to install pg gem on ubuntu - Can’t find the 'libpq-fe.h header 每當我嘗試安裝PG寶石爲我的Rails項目,它給了我Error "failed to build native extensions"。 我已經使用了一些技巧,但失敗了。

    3熱度

    2回答

    我正嘗試在pg gem中使用ruby中的準備語句。這是我的發言看起來像 conn.prepare("insert_values", "insert into " + objectName + "(" + headerStr + ") values (" + prep_values + ")") conn.exec_prepared("insert_values", arr) 我不斷收到 預處

    3熱度

    4回答

    我一再嘗試使用nginx和獨角獸在ec2實例上設置我的rails應用程序。我發現nginx和獨角獸都設置正確;但是,在這兩臺機器上,我的Rails應用程序不想在生產環境中啓動。試圖在生產啓動的輸出是: /Users/benvreed/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_r

    1熱度

    3回答

    我是node,postgresql和整個Web開發業務的新手。我目前正在編寫一個簡單的應用程序,它連接到一個postgres數據庫並在Web視圖中顯示一個表格的內容。該應用程序將在OpenShift中進行託管。 我的主項是server.js: var pg = require('pg'); pg.connect(connection_string, function(err, client) {

    0熱度

    1回答

    所以,這是我第三次在這個項目的工作過程中收到這個錯誤我幾個月前發佈了一個關於這個問題的問題 ActiveRecord::StatementInvalid (PG::Error: ERROR: column does not exist Heroku的日誌 2012-11-19T05:04:20+00:00 app[web.1]: Processing by MainController#home