pgAdmin

pgAdmin error - relation “[name of function/Views/Trigger Functions]” does not exist

醉酒当歌 提交于 2019-12-30 10:26:12
问题 I'm just new to pgAdmin, so I don't really know what causes these errors: ERROR: relation "ongoingprojects" does not exist LINE 1: SELECT * FROM ongoingProjects; ^ ********** Error ********** ERROR: relation "ongoingprojects" does not exist SQL state: 42P01 Character: 15 Even if the function/view exists in the schema. Why does it give that error? And what should I do to fix it? 回答1: Pay careful attention to the error message: ERROR: relation "ongoingprojects" does not exist Note that it is

pgAdmin error - relation “[name of function/Views/Trigger Functions]” does not exist

非 Y 不嫁゛ 提交于 2019-12-30 10:26:02
问题 I'm just new to pgAdmin, so I don't really know what causes these errors: ERROR: relation "ongoingprojects" does not exist LINE 1: SELECT * FROM ongoingProjects; ^ ********** Error ********** ERROR: relation "ongoingprojects" does not exist SQL state: 42P01 Character: 15 Even if the function/view exists in the schema. Why does it give that error? And what should I do to fix it? 回答1: Pay careful attention to the error message: ERROR: relation "ongoingprojects" does not exist Note that it is

Difference between pg-promise 'duration' and execution time in EXPLAIN ANALYSE of postgres?

流过昼夜 提交于 2019-12-25 07:13:35
问题 I am using 'duration' property from data object of 'result' function to measure the duration of execution of my query. I tried the same query in pgAdmin with "EXPLAIN ANALYSE". Both have a big difference. can anyone say why is this? which is the right approach to measure the execution duration of my query. 回答1: EXPLAIN ANALYSE is a performance perspective internal to the server only. duration provided by method result of pg-promise includes: preparing the query for execution sending the query

copy data from a text.rpt file to paste it postgresql in pgadmin

不羁岁月 提交于 2019-12-24 11:28:47
问题 When I run: COPY con (date,kgs) FROM 'H:Sir\\data\\reporting\\hi.rpt' WITH DELIMITER ',' CSV HEADER date AS 'Datum/Uhrzeit' kgs AS 'Summe' I get the error: WARNING: nonstandard use of \\ in a string literal LINE 2: FROM 'H:Sudhir\\Conair data\\TBreporting\\hi.txt' ^ HINT: Use the escape string syntax for backslashes, e.g., E'\\'. I've been having this problem for quite a while. Help? 回答1: It's not an error, it's just a warning. It has nothing to do with the file content, it's related to a

On INSERT to a table INSERT data in connected tables

五迷三道 提交于 2019-12-24 07:14:27
问题 I have two tables that have a column named id_user in common. These two tables are created in my Drupal webpage at some point (that I don't know because I didn't created the Netbeans project). I checked on the internet and found that probably by adding REFERENCES 1sttable (id_user) to the second table, it should copy the value of the 1sttable (that is always created when a new user arrives) to the id_user value of the 2ndtable (that I don't know at which point is created). Is it correct? If

On INSERT to a table INSERT data in connected tables

ⅰ亾dé卋堺 提交于 2019-12-24 07:14:17
问题 I have two tables that have a column named id_user in common. These two tables are created in my Drupal webpage at some point (that I don't know because I didn't created the Netbeans project). I checked on the internet and found that probably by adding REFERENCES 1sttable (id_user) to the second table, it should copy the value of the 1sttable (that is always created when a new user arrives) to the id_user value of the 2ndtable (that I don't know at which point is created). Is it correct? If

Postgres pgAdmin III Access to Database Denied

≯℡__Kan透↙ 提交于 2019-12-24 07:09:09
问题 I get the following error when attempting to connect to the Postgres instance on my server. Access to database denied The server doesn't grant access to the database: the server reports FATAL: no pg_hba.conf entry for host "fe80::2d93:af94:879c:4fa%12", user "postgres", database "postgres", SSL off I have tried the three obvious solutions found HERE. Namely I attempted Syed Aslam solution found in that^ link. I tested that I was restarting the service correctly by removing some config to

Postgresql: Violates check constraint. Failing row contains

江枫思渺然 提交于 2019-12-23 12:45:11
问题 I tried to insert some data in a database with postgresql but still showing the same message: ERROR: new row for relation "empleados" violates check constraint "ck_empleados_documento" DETAIL: Failing row contains (13, 22222222, f, Lopez, Ana, Colon 123, 1, 2, casado , 1990-10-10). I do not know where or what the error is nor did I find anything that solved this. This is what i try to insert: insert into empleados (documento, sexo, apellido, nombre, domicilio, idSecc, cantidadhijos,

How to set connection timeout value for pgAdmin?

老子叫甜甜 提交于 2019-12-23 09:32:08
问题 I am using pgAdmin to connect remotely to my database as phpPgAdmin is a bit limited in its features. Only problem is if I leave the SQL window open without running a query for a few minutes, then it says I need to reconnect. Is this a setting I need to change in my database to keep remote connections alive for longer or is it a pgAdmin setting? 回答1: It is client setting. You need specify connect_timeout in your config file. 29.1. Database Connection Control Functions 29.14. The Connection

How to configure pgAdmin III to open default database and select tables node on startup?

冷暖自知 提交于 2019-12-23 07:46:44
问题 99% of the time when I start pgAdmin III, I need to look at the tables of one specific database. It is very annoying to click through the tree every time. When I open pgAdmin, I would like it to automatically connect to my last database and expand the tree on the left and select the "tables" node. Is that possible? What is also annoying is when I rename a column, the tree node selection is lost and I have to open the whole tree again. 回答1: There is a related option: Restore env . It's on by