Answer the question
In order to leave comments, you need to log in
How to work with Postgres and 1s database?
All the best!
Such a thing: there is a remote server on Debian OS, on which Postgres is installed.
There is a 1s client (application) that should use this remote server as a server for 1s. The 1s programmer managed to set up the above scheme and upload an already existing directory there.
Now I'm trying to work with this database, but there's something like a mess with tables, firstly there are a lot of them, there are strange table names, almost all of them are empty ....
Tell me how to get data from such a database?
P.S. This was done in order to be able to connect different web services (bot, site) to the database.
That is, there is one database, with it in the usual mode / 1c environment, data is changed and there is a site that also receives up-to-date data from there
Answer the question
In order to leave comments, you need to log in
Long and painfully smoke this storehouse of delirium and the Augean stables of shit code called 1s.
These people basically do not know how to work with a DBMS. And in the database there is an absolute hell and a mess, that's right.
Most likely, it would be much better to abandon this idea and export the necessary data separately. And to intersect with this craft only through a narrow export slot, with the indispensable validation of all passing data without exception.
Now I'm trying to work with this database, but there's something like a mess with tables, firstly there are a lot of them, there are strange table names, almost all of them are empty ....
Tell me how to get data from such a database?
You can find out the correspondence between postgreSQL tables and internal 1C objects using the GetDatabaseStorageStructure() method.
But it is important to remember that after the first unloading - loading into *.dt , the table names will change.
It is possible to connect separate tables to the 1s client as an external data source.
The 1s programmer managed to set up the above scheme
and you can clarify what was meant:
1. v8.1c.ru/overview/Term_000000662.htm
or
2. v8.1c.ru/overview/Term_000000581.htm, in
total, the answers will be different.
Correspondence between 1C configuration object identifiers and DBMS field and table names:
https://www.forum.mista.ru/topic.php?id=531348
https://its.1c.ru/db/metod8dev#content:1798: hddoc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question