Skip to content

Restore data after update. #4422

Answered by Sieg-hart
Sieg-hart asked this question in Q&A
Dec 2, 2024 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

I think I found the problem.

Unable to import the data via the command lines, I modified the dump to change the copy to insert into (using a custom script), and modified the function declarations to remove the ; after END.

By exemple :

CREATE FUNCTION public.convert_m(n double precision, unit text) RETURNS double precision
    LANGUAGE sql IMMUTABLE STRICT
    AS $_$
  SELECT
    CASE WHEN $2 = 'm' THEN $1
         WHEN $2 = 'ft' THEN $1 * 3.28084
    END
$_$;

And I tried to connect to the database from outside.
The tool I used (heidiSQL) did not show me all the databases (the tool seems compatible more with mySQL databases than postgreSQL.).
I only saw the "postgres" base and not "tesla…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@eliluong
Comment options

@Sieg-hart
Comment options

@Sieg-hart
Comment options

@Sieg-hart
Comment options

Answer selected by Sieg-hart
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants