Odp: Proglem z logiem postresa przy połączeniu z własnego programu
procedure TForm1.FormCreate(Sender: TObject);
begin
PQConnection1.HostName := '127.0.0.1';
PQConnection1.UserName := 'postgres';
PQConnection1.Password := '12345';
PQConnection1.DatabaseName := 'postgres';
PQConnection1.Params.Add('application_name=''Moja Aplikacja''');
PQConnection1.Transaction := SQLTransaction1;
SQLQuery1.SQL.Text := 'SELECT a FROM test';
SQLQuery1.Transaction := SQLTransaction1;
SQLQuery1.UpdateMode := upWhereChanged;
Datasource1.DataSet := SQLQuery1;
DBGrid1.DataSource := Datasource1;
PQConnection1.Connected := true;
SQLQuery1.Open;
end;